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. ...
I am using xbindkeys and xte to map an extra button on my mouse to the pause button on my keyboard. My .xbindkeysrc looks as follows: "xte 'keydown Pause'" b:10 "xte 'keyup Pause'" b:10 + ...
I have been making scripts to open and close a speficic website, with a cronjob, on the raspberry Pi. The opening script works perfectly. It is as follows: #!/bin/bash export DISPLAY=:0 && ...