Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
1answer
215 views

detect if key is pressed from script

I would like to detect if a key is being pressed when running a script. I have the following script: #!/bin/bash sleep 0.5 xte 'str sometext' I run this script using a shortcut to paste "sometext" ...
2
votes
0answers
299 views

xte and keyboard mapping

I'm trying to fake xinput events with xte: xte "str $(echo '<ABC@gmail.com>')" But, I get: WQBC@g;qil<co;X That's really weird, I'm using US keyboard and mapping, but xte gives this ...