Skip to content

Instantly share code, notes, and snippets.

@znatz
Created March 29, 2014 17:56
Show Gist options
  • Save znatz/9859063 to your computer and use it in GitHub Desktop.
Save znatz/9859063 to your computer and use it in GitHub Desktop.
CmusをRuby ワンライナーでコントロールする ref: http://qiita.com/900090009/items/c0477585395caedda70b
$ ruby -r socket -e 'Socket.unix("#{ENV["HOME"]}/.cmus/socket"){|s| IO.copy_stream($<, s)}'
player-pause <--コントロールコマンド
player-play
seek +1m
 ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment