I'm using Ubuntu desktop 18.04
When going to
settings -> Devices -> Keyboard
it's possible to change the keyboard shortcuts or add them.
My keyboard doesn't have a button for Audio next
or Audio previous
.
So I want to set a shortcut myself. (I want to be able to do next/previous track in Spotify and ctrl+arrow only works with an active window)
However I don't want to overwrite the original in case I have to use another keyboard or this maybe causes issues with connected audio devices or whatever.
So I just want to add another shortcut which runs the same command.
How can I find the command associated with the audio controller?
I.e. moving an active window to the right monitor is:
wmctrl -r ":ACTIVE:" -e 0,1920,0,1920,1080
So here wmctrl is a command used to control windows. But I would like to know the one which controls the audio.
I found this answer but I also cannot find how to go to the next track via ALSA or PulseAudio.
I don't want to install other applications for this as some sites suggest.
Since the shortcut keys can be changed on-the-fly I'm guessing the commands must be somewhere in a config file.
My main question is:
Where can I find the command (or file) associated with changing audio tracks.
Bonus:
As for just getting better in working with Linux and for others with similar but different questions. How would one search to resolve issues like this? This is more in the lines of how does Linux interact with hardware and applications. Like when I press something on the keyboard or mouse it sends a signal which goes to the keyboard driver which sends it to other processes which execute commands? Or is this to broad and do I just have to take some time and work through a Linux OS tutorial ? (which is never a bad idea just too much to do too little time)