I was wondering whether it is possible to pause a music player (in my case Rhythmbox), by pressing a button, while the screen is locked. I would assume no, but I thought I'd ask.
A short example: If the screensaver goes on the music continues. But lets say somebody comes in my office, I don't want to type in the password, but just hit a button to pause it. And ideally of course play again once I'm alone.
Is there a program that would allow something like this? I'm using Fedora16.
Edit thanks to pbm for the solution. Here is my
actkbd.conf (using Ctrl+Alt+P):
25+29+56:::su MyUserName -c "dbus-send --type=method_call --print-reply --dest=org.gnome.UPnP.MediaServer2.Rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"