On my laptop, I'm currently using the keys from F1 to F12 as multimedia keys (e.g. volume up, volume down, play/pause, prev, etc).
The problem is that the standard shortcut for closing a window (Alt+F4) is not working, in fact I need to press Alt+Fn+F4.
In order to avoid pressing Fn and having the standard behavior without disabling multimedia keys I would like to map Alt+Audio Previous (which is the multimedia key on F4 on my keyboard) as closing shortcut.
Setting this in System settings -> Keyboard -> Shortcuts is recognized properly by the interface but it's not actually working.
Same thing if I change using Dconf Editor, again, I can change the value (and apparently it's saved correctly) but the shortcut does not work.
How is it really possible to change such setting?
Alternatively is it possible to map Alt+Audio Previous to actually send Alt+F4 to the window manager?
Using Ubuntu 16.04 with Unity.
Ctrl+W
? if that doesnt satisfy you there are several good articles about xbindkeys which allows for more accurate binding of keys AskUbuntu Article – WooJoo Jan 10 '17 at 02:32