added scripts folder to gitea

This commit is contained in:
lucca
2026-06-11 13:47:48 -04:00
commit f8130bd7d0
91 changed files with 1868 additions and 0 deletions
Executable
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
mousewarp ()
{
HERE="$(xdotool getwindowfocus)"
ULX=$(xwininfo -id "$HERE" | grep " Absolute upper-left X:" | awk '{print $4}')
ULY=$(xwininfo -id "$HERE" | grep " Absolute upper-left Y:" | awk '{print $4}')
# If there is no window, ULX == 1 and ULY == 1.
if [ "$ULX" != "-1" ] || [ "$ULY" != "-1" ]; then
eval "$(xdotool getwindowgeometry --shell "$HERE")"
((NX="$WIDTH"/2))
((NY="$HEIGHT"/2))
xdotool mousemove --window "$WINDOW" "$NX" "$NY"
fi
}
rofi -show window -show-icons
mousewarp