This short script allows the Play/Pause keyboard key to be also used to start Spotify (or any player of your choice with a bit of tweaking). I'm using Cinnamon's settings to reassign keys, but other distros may also have this feature
- Download/copy the script somewhere on your system
chmod +x ./spotifyPause.sh
to make it runnable- Add the new keybinding [Cinnamon only]
- Open
cinnamon-settings keyboard
(you can search for "Keyboard" in the start menu search if you don't like terminals)