summaryrefslogtreecommitdiff
path: root/ar/.local/bin/xdotmouse
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.local/bin/xdotmouse')
-rwxr-xr-xar/.local/bin/xdotmouse13
1 files changed, 13 insertions, 0 deletions
diff --git a/ar/.local/bin/xdotmouse b/ar/.local/bin/xdotmouse
new file mode 100755
index 0000000..08c8226
--- /dev/null
+++ b/ar/.local/bin/xdotmouse
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+speed="5"
+
+case "$1" in
+h) xdotool mousemove_relative -- -$speed 0 ;;
+j) xdotool mousemove_relative 0 $speed ;;
+k) xdotool mousemove_relative -- 0 -$speed ;;
+l) xdotool mousemove_relative $speed 0 ;;
+c) xdotool click 1 ;;
+C) xdotool click --repeat 1 ;;
+r) xdotool click 2 ;;
+esac