Skip to content

Instantly share code, notes, and snippets.

@Yeshey
Last active December 20, 2024 17:03
Show Gist options
  • Save Yeshey/c3ef95fb0aed69ab09388eb68300585c to your computer and use it in GitHub Desktop.
Save Yeshey/c3ef95fb0aed69ab09388eb68300585c to your computer and use it in GitHub Desktop.
Makes the mouse go round, baby right round
#!/bin/bash
# This script makes the mouse go infiiniteley big bc of the Shake Cursor feature, works in this plasma version:
# KDE Plasma Version: 6.2.4
# KDE Frameworks Version: 6.8.0
# Qt Version: 6.8.0
# Kernel Version: 6.6.66 (64-bit)
# Graphics Platform: Wayland
# (or in this revision of my nixOS configuration https://github.com/Yeshey/nixOS-Config/tree/b654bf8bf495925c837e2473cd38fc64455efbb8)
terminater(){
pkill xdotool
rm backingfile
echo " Exiting normally"
exit # Exits normally
}
trap "terminater" SIGINT SIGTERM
sleep 1
while true
do
xdotool mousemove_relative --sync -- -20 -20
sleep 0.01
xdotool mousemove_relative --sync -- 10 -10
sleep 0.01
xdotool mousemove_relative --sync -- 20 20
sleep 0.01
xdotool mousemove_relative --sync -- -80 80
xdotool mousemove_relative --sync -- -20 -20
sleep 0.01
xdotool mousemove_relative --sync -- 10 -10
sleep 0.01
xdotool mousemove_relative --sync -- 20 20
sleep 0.01
xdotool mousemove_relative --sync -- -10 10
sleep 0.01
xdotool mousemove_relative --sync -- -20 -20
sleep 0.01
xdotool mousemove_relative --sync -- 80 -80
sleep 0.01
xdotool mousemove_relative --sync -- 20 20
sleep 0.01
xdotool mousemove_relative --sync -- -10 10
sleep 0.01
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment