On Fri, Apr 12, 2024 at 04:41:44AM -0700, Alex Becker wrote: > Hello all! > Bit of an odd request, but hear me out. I am attempting to "emulate" a > numpad on a keyboard that does not have one. Effectively, I want to be > able to map a box of nine keys on my keyboard to act as a number pad when a > modifier is held down. > > For example, using control + shift as a modified I would map the "box" of > keys around the J key to act as a numberpad: yui -> 789, jkl -> 456, nm, -> > 123. I was able to accomplish this on my Windows work laptop fairly easily > using AutoHotkey, but I have not yet been able to accomplish the same on my > personal Arch Linux box with Qitle. I have tried something like this: > > Key(['control', 'shift'], "j", lazy.spawn('xdotool key KP_Begin'))
Why not `xdotool key 4` here? Then it's control+shift that activates this keypad mode, and "j" in this case maps to 4. If you want to do something to put it in "keypad mode" (so you don't have to continuously hold ctrl+shift or whatever), I think you can probably use KeyChords to accomplish this? Not sure. Tycho -- You received this message because you are subscribed to the Google Groups "qtile-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to qtile-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qtile-dev/ZhlMjTxZ//VyYWBN%40tycho.pizza.