1

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.

hjpotter92
  • 78,589
  • 36
  • 144
  • 183
BeepDog
  • 5,016
  • 2
  • 24
  • 33

1 Answers1

1

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

hjpotter92
  • 78,589
  • 36
  • 144
  • 183