ssokolow / quicktile

Adds window-tiling hotkeys to any X11 desktop. (An analogue to WinSplit Revolution for people who don't want to use Compiz Grid)
https://ssokolow.com/quicktile/
GNU General Public License v2.0
861 stars 78 forks source link

quicktile assumes querty keycode mappings, don't work with other layouts #51

Open SimonWoolf opened 9 years ago

SimonWoolf commented 9 years ago

So e.g. if you use the colemak keyboard layout (e.g. using setxkbmap gb -variant colemak), and have a quicktile action bound to E, then pressing e (which on a colemak keyboard is keycode 45) doesn't do anything. To get the desired action you need to press the key that would be 'e' if the keyboard was querty, i.e. keycode 26 (which on colemak is actually the 'f' key).

ssokolow commented 9 years ago

That's delegated to Xlib.display.Display.keysym_to_keycode() from python-xlib and the documentation for Xlib is so horrendous that I wouldn't know where to start tracking down the source of the problem.

I'll leave this open in case it's a bug in python-xlib that could be fixed by my plans to migrate to XPyB but that's all I can do without help.