Skip to content

Instantly share code, notes, and snippets.

@ngauthier
Created November 27, 2012 16:05
Show Gist options
  • Save ngauthier/4155099 to your computer and use it in GitHub Desktop.
Save ngauthier/4155099 to your computer and use it in GitHub Desktop.
Rdio on Linux

This is a guide for setting up rdio in ubuntu. Specifically via gnome-shell as an application.

Step 1.

Install Google Chrome on linux

Step 2.

Download Rdio's icon. Place it in ~/.local/share/icons/rdio.png.

Step 3.

Place the attached rdio.desktop in ~/.local/share/applications/rdio.desktop.

Step 4.

Place the attached rdio-pause in your home directory, for example ~/bin. Mark it as executable. Open System Settings and choose Keyboard. Choose Shortcuts tab then Custom Shortcuts section. Add a shortcut named Rdio Play-Pause, and give it the full path to rdio-pause. Bind this to your play/pause key. You'll need to install xdotool for this to work.

#!/bin/sh
xdotool key --window $(xdotool search --name Rdio | head -1) space
# Place this in ~/.local/share/applications/rdio.desktop
[Desktop Entry]
Exec=google-chrome --app=http://rdio.com
Type=Application
Name=Rdio
Icon=rdio
@lavarini
Copy link

Step 5.

Now rdio suports direct arrow navigations next(right arrow) and previous(left arrow).
Repeat step 4 for the attached rdio-next to create next music shortcut.

rdio-next:

#!/bin/sh
xdotool key --window $(xdotool search --name Rdio | head -1) Right

@starchy
Copy link

starchy commented Sep 25, 2013

Thanks for this. I made a small change to catch all the variant title bars (ie "Heavy Rotation - Rdio"):

xdotool key --window $(xdotool search --name .Rdio | head -1) space
xdotool key --window $(xdotool search --name .Rdio | head -1) Right
xdotool key --window $(xdotool search --name .Rdio | head -1) Left

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment