Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # kills processes when you kill the script
- trap "exit" INT TERM
- trap "kill 0" EXIT
- # Starts the SW cursor
- /path/to/swcurosr /path/to/your/curosr/image.png &
- # Uncomment of not already running a compositor and you have picom installed
- # picom &
- # Uncomment this line to hide the cursor, this is ugly but works, it kills and launches unclutter every .15 seconds
- # this is because mouse clicks will keep unhiding it
- #while true; do unclutter --timeout 0 --jitter 4000 & last_pid=$!;sleep .15;kill -TERM $last_pid 2> /dev/null;done
- wait $!
Advertisement
Add Comment
Please, Sign In to add comment