Sha256: c752d42dd2f1b0dad6c3ac278c7980bddc9341d2deef26a4540df2350844b157
Contents?: true
Size: 553 Bytes
Versions: 3
Compression:
Stored size: 553 Bytes
Contents
class RhythmboxPlayer < MusicPlayer def playpause tell_to 'play-pause' end def prev tell_to 'previous' end def next tell_to 'next' end def voldown tell_to 'volume-down' end def volup tell_to 'volume-up' end def volume tell_to 'print-volume' end def current_track tell_to 'print-playing' end def launched? %x(rhythmbox-client --no-start --print-playing 2>/dev/null).rstrip != "" end private def tell_to(command) %x(rhythmbox-client --no-start --#{command}).rstrip end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sakuric-2.1.3 | lib/sonice-players/rhythmbox.rb |
sakuric-2.0.3 | lib/sonice-players/rhythmbox.rb |
sakuric-2.0.1 | lib/sonice-players/rhythmbox.rb |