Browse Source

Add a mouse jiggler command

Samuel W. Flint 5 months ago
parent
commit
4503879bda
1 changed files with 11 additions and 0 deletions
  1. 11 0
      jiggle

+ 11 - 0
jiggle

@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+MID_SLEEP_SECS=${1:-1}
+AFTER_SLEEP_SECS=${2:-0}
+
+while true; do
+    xdotool mousemove_relative 50 50
+    sleep ${MID_SLEEP_SECS}
+    xdotool mousemove_relative -- -50 -50
+    sleep ${AFTER_SLEEP_SECS}
+done