Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env sh
- # emulate mouse button click by checking for existence of file
- file="/tmp/mousedown"
- if [ ! -f "$file" ]
- then
- xdotool mousedown 1
- echo "left mousebutton pressed"
- touch $file
- else
- xdotool mouseup 1
- echo "left mousebutton released"
- rm $file
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement