1

Is there a gem to send keys to the Windowmanager with Ruby? I would like to send commands to the windowmanager (I use dwm). Something like

windowmanager.send( "MOD-Shift-C" )

or stuff would be great.

musicmatze
  • 4,124
  • 7
  • 33
  • 48

2 Answers2

2

It hasn't been updated in a while, but try the xdo gem:

tshepang
  • 12,111
  • 21
  • 91
  • 136
echristopherson
  • 6,974
  • 2
  • 21
  • 31
2

This question is also partially answered by this post, which gives examples for Windows and for Mac. echristopherson's answer is for Linux only, which does seem to be what you are referring to.

Community
  • 1
  • 1
Derander
  • 91
  • 3