Tycho Thanks for the KeyChords idea, I'll have to check that out. Having a separate keyboard "mode" for numpad and whatever other macros I can scheme up could have a lot of benefit
I think my main issue was with the xdotool component. The command works as intended when I run it from a standalone terminal, but for whatever reason it doesn't type the input on my screen when I map it out in Qtile. Without knowing how exactly everything is set up, I'm guessing the output of the xdotool command is going to some internal shell/process rather than my session. Just a guess Thanks! Alex On Fri, Apr 12, 2024 at 10:00 AM Tycho Andersen <[email protected]> wrote: > 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 a topic in the > Google Groups "qtile-dev" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/qtile-dev/f3EhN0Wr0NA/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/qtile-dev/ZhlMjTxZ//VyYWBN%40tycho.pizza > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qtile-dev/CANOHA0sypBJnWb%2BsKE6zTOBxYbLMjN2uuOf1iVz30Z4CeK4CYw%40mail.gmail.com.
