I like Rdio and linux. Rdio works great in a browser except for one thing: keyboard shortcuts!!!
When coding, I like to be able to play/pause my music quickly, meaning I don't want to switch windows. I figured out a way to do this:
First, I created a shortcut to the app from Google Chrome. Right click on the app and create the shortcut.
Next, I made a file in my ~/bin
called rdio
.
This looks up a window with the name "Rdio" and sends the "space" key to it, which is Rdio's keyboard shortcut for play/pause. Left and right arrows are for next and previous.
xdotool needs to be installed.
sudo apt-get install xdotool
Last, I created keyboard shortcuts for the media keys to run the commands.
rdio play
to play/pause
rdio next
to skip to next song
rdio previous
to go to previous song
Thanks to @IAmAru for suggesting I look into window manager command line tools.