Sample Header Ad - 728x90

send keystroke to process

3 votes
1 answer
5714 views
I'd like to run some applications in fullscreen. Even though they don't have an explicit such option, it is possible with the metacity Alt-F11 command. So, I thought I could create such an input like this: full.txt: KeyStrPress Alt_L KeyStrPress F11 KeyStrRelease F11 KeyStrRelease Alt_L and then: xmacroplay "$DISPLAY" < full.txt (in my case, the same as xmacroplay :0.0 < full.txt) But, it works in the terminal where it is run. How do I send it to the stdin of some other process? **Edit**: I found a better way to do this: wmctrl -r urxvt -b toggle,fullscreen (for urxvt). Check out my answer to this [question](https://stackoverflow.com/questions/9783198) for (a bit) more on that.
Asked by Emanuel Berg (7101 rep)
Jun 7, 2012, 10:13 AM
Last activity: Nov 10, 2012, 01:03 AM