Question

Not sure exactly how to phrase this, but I'm trying to construct a lua method to be able to have two key commands for an action

say meta-r,4 Where I'd push meta and R and then release both keys and push 4, and it would say, put a client on monitor 4, or something like that.

I haven't been able to find good google references for something like this, and looking at the awesome APIs I'm not seeing anything either.

EDIT: an example is how you change windows in screen, one pushes Ctrl+A and then 4 to go to the 4th window.

Was it helpful?

Solution

These are called modal key-bindings. Look at this documentation to create a mode.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top