pkkid / x11pygrid

Quickly move windows around the an X11 desktop
GNU General Public License v2.0
323 stars 41 forks source link

Support multiple binding #10

Open npetzall opened 5 years ago

npetzall commented 5 years ago

This is probably weird request, but I'm using a laptop and I would like to have multiple bindings. Since I normally use a docking station and a full size keyboard.

But when I'm not I don't have the keypad, keypad is really nice to use when available.

To be honest I haven't done enough research, but I think I need to use different accelerator (unknown state of numlock when using only laptop keyboard).

I have implemented this in a fork+branch.

npetzall commented 5 years ago

https://github.com/npetzall/pygrid/tree/multi-bind

SimonDedman commented 5 years ago

It occurs to me that you could have your key bindings configured for laptop-only keys (i.e. no numpads) then in keyboard applications shortcuts, have your fullsize keyboard keybindings trigger the laptop keybindings, e.g. laptop right is super alt right (so to speak!), make a keybinding: input = super alt keypad6 output = super alt right ?