I'm new to Ubuntu and I try to configure custom Play/Pause shortcut. I have my laptop and 2 keyboards (home and work). First keyboard has Play/Pause button (Fn+F11 - this works), however second keyboard doesn't. I can change in Keyboard settings shortcut into Super+F11, and it works. But then my Fn+F11 doesn't work on first keyboard.
I tried to add new shortcut but I don't know, what to fill into Command. Here (Trigger play/pause event) I found command xdotool key XF86AudioPlay
. I installed xdotool but command does nothing. I also found Play/Pause not working spotify but if I add listed command, shortcut works only for Spotify, not others applications.
Does anybody knows which command I should put into new custom shortcut settings?
xdotool key --clearmodifiers XF86AudioPlay
. Otherwise, you effectively press Super+XF86AudioPlay if you bind the command to Super+AnyKey. – danzel Jul 05 '19 at 18:30