Tuesday, 4 June 2013

How to stop Windows+P reconfiguring your monitor with Gnome3

I've recently switched to using i3-wm as my Window manager under Gnome3 on Debian 7.0 (Wheezy.) I'm using the Windows key (Mod4) for most of my key bindings and it's taking a bit of getting used to. In particular I have trouble when I've just typed something involving the Windows key and I now need to press the Alt key. This means I keep accidentally pressing Windows+P which causes all my displays to change configuration. Fixing this situation is time consuming since I need to move my containers back onto the correct displays.

So, I went looking for a configuration setting with:
gsettings list-recursive|grep -i '<super>p'
Which revealed that I could easily disable this behaviour with:
gsettings set org.gnome.settings-daemon.plugins.media-keys video-out ""
So now when I press Windows+P all I get is a far less serious "p" character. This might be problematic if I had a laptop that generated the Windows+P key combination when pressing the monitor select function key but I don't so that isn't a problem for me.