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" ...
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 ...
I would like to bind my (Logitech mouse, thumb button) b:2 to the middle mouse button button 2. I tried "xte 'mouseclick 2'" b:8 which does work in the terminal, but not with xbindkeys. ...