Ubuntu – change Synapse shortcut to Super/Windows key alone

shortcut-keyssynapse

When I try to edit the synapse config it does not allow me to use the left Super as a shortcut to invoke it. Is there a round-about way that I can go through.

Synapse Configuration

When I just press the Windows/Super key the configuration window does not acknowledge it. However, a combination shortcut (such as Super+A) does work fine.

Since I'm using Precise, with Unity, I'd also need a way to change the default dash behaviour for Windows/Super key to something else.

Best Answer

See better answer below this one.

You must bind the action to the Super's scancode or keycode; normal hotkeys record the state of the modifier keys and throw away their keypress events; so you never see something that reacts to just pressing Alt, but instead to the A key plus the Alt key's recorded state.

The hotkey library in use is libgtkhotkey (0.2 on 12.04) and it doesn't support using the key press event from modifier's. You'd have to write your own patch to catch that and perhaps support such a thing in the signature format.

All tests with the existing signature format failed to produce anything but an error.