-
-
Save kitzberger/31e9921ecee02f2ae38ff4739d6ae4ca to your computer and use it in GitHub Desktop.
Spotify - Linux key bindings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install xbindkeys | |
echo ' | |
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" XF86AudioPlay | |
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" XF86AudioStop | |
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" XF86AudioNext | |
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" XF86AudioPrev' >> ~/.xbindkeysrc | |
# When upgrading to Ubuntu 20.04 the keys didn't work at first, so Chrome had to be configured to let go of those keys: https://askubuntu.com/a/1239618/214134 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment