Logitech K270 has media keys:
- volume down
- volume up
I don't know what "home" is supposed to do, whereas "mail" and "calculator" don't do anything simply (I hope I'm not wrong) because I haven't installed a calculator and a mail client yet.
But: "mute/unmute" only mutes.
As a workaround I've tried to put the following two lines
"pactl set-sink-mute 0 toggle" XF86AudioMute
.xbindkeysrc file, but the key kept muting the audio, so I mapped
"playerctl previous" XF86AudioMute
and it still kept muting, just like the mapping I'm using is overridden or simply not working.
Finally, as a dirty workaround I've used the following two lines
"pactl set-sink-mute 0 toggle" shift + XF86AudioMute
which works, but requires one more keystroke.
I've tried with other keys, and it seems that
xbindkeys cannot map media keys without a modifier (ordinary keys work just fine even without).
By the way, I think I'm pretty confused on the argument (audio). For instance, system volume is a think, the volume set in the player is another. How to control the former? And the latter? What if I bind the same key to both?
When I run
xbindkeys -n in a terminal, I get
$ xbindkeys -n *** Warning *** Please verify that there is not another program running which captures one of the keys captured by xbindkeys. It seems that there is a conflict, and xbindkeys can't grab all the keys defined in its configuration file.