Guest User

Untitled

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