2010-05-09 14:24:03 PDT
Hi Peter,
Now for something a little more advanced...
Rythmbox is the default music player in Fedora FC12. In trying to understand how Simon works I would like to see how far I can get in controlling Rythmbox.
Rythmbox has a command line interface called rythmbox-client, which has the following commands:
Application Options:
--debug
--no-start Don't start a new instance of Rhythmbox
--quit Quit Rhythmbox
--no-present Don't present an existing Rhythmbox window
--hide Hide the Rhythmbox window
--next Jump to next song
--previous Jump to previous song
--notify Show notification of the playing song
--play Resume playback if currently paused
--pause Pause playback if currently playing
--play-pause Toggle play/pause mode
--play-uri=URI to play Play a specified URI, importing it if necessary
--enqueue Add specified tracks to the play queue
--clear-queue Empty the play queue before adding new tracks
--print-playing Print the title and artist of the playing song
--print-playing-format Print formatted details of the song
--set-volume Set the playback volume
--volume-up Increase the playback volume
--volume-down Decrease the playback volume
--print-volume Print the current playback volume
--mute Mute playback
--unmute Unmute playback
--set-rating Set the rating of the current song
Now, I could use the 'Program' plugin, with 'music' as the trigger, and have a manual command for each rythmbox command, e.g. for 'pause' have a command 'rythmbox-client --pause', and assign it to a command trigger called 'pause'
But it seems like it should be a plugin (like calculator) with the command as an 'action' - is that something that can be easily done?
thanks,
Ken