Created
May 15, 2024 08:46
-
-
Save DanielAugusto191/f28424cef6057541bf484f8c3be4d816 to your computer and use it in GitHub Desktop.
Use scroll lock as auto clicker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| while true; do | |
| scroll_lock=$(xset q | grep "Scroll Lock:" | awk '{print $NF}') | |
| echo $scroll_lock | |
| if [ "$scroll_lock" == "on" ]; then | |
| xdotool mousedown 1 | |
| else | |
| xdotool mouseup 1 | |
| fi | |
| sleep 1 | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment