1

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.

wjandrea
  • 14,236
  • 4
  • 48
  • 98
  • Have you tried changing it in the BIOS settings? – Chai T. Rex Jan 09 '17 at 22:44
  • @oltreseba have you tryed 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
  • Chai T. Rex: of course I can disable this setting in the bios setting, but then I have to press fn every time I want to use a multimedia key, and that's not what i want. @WooJoo i'll give xbindkeys a try. – oltreseba Jan 10 '17 at 07:37
  • You can use Ctrl+Q to close most apps – wjandrea Jan 10 '17 at 15:50
  • 1
    Ctrl + Q is not the right solution at all, for two reason: 1 - as you noticed not all apps follow this shortcut (e.g. google chrome does not), therefore it's un-predicatable; 2 - Ctrl + Q is actually an "in application" shortcut that does not only close the window (like alt + f4 does) but actually exit the application. This cause applications that should not really close, and that usually go to the systray to actually close. – oltreseba Jan 10 '17 at 19:47

0 Answers0