This plugin adds media hotkey support to your application, allowing you to control playback using keyboard shortcuts. Specifically, it maps the F10 key to play the next song.
- Next Track: Press
F10to skip to the next track in the playlist.
-
Clone this repository or download the plugin files:
git clone https://github.com/mervick/media-hotkeys.git
-
Copy the plugin to the appropriate directory for your application. For Rhythmbox, this would typically be:
cp -r media-hotkeys ~/.local/share/rhythmbox/plugins/ -
Enable the plugin in your application:
- Open Rhythmbox (or your application).
- Go to
Preferences>Plugins. - Find
Media Hotkeysin the list and enable it.
Currently, the plugin is configured to use the F10 key for the "next" action. You can modify the key bindings by editing the do_activate method in the MediaHotkeysPlugin class.
app.set_accels_for_action("win.next", ["F10"])Replace "F10" with your desired key combination.