summaryrefslogtreecommitdiff
path: root/A.sh
diff options
context:
space:
mode:
Diffstat (limited to 'A.sh')
-rwxr-xr-xA.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/A.sh b/A.sh
new file mode 100755
index 0000000..cd9fda2
--- /dev/null
+++ b/A.sh
@@ -0,0 +1,7 @@
+#!/bin/dash
+capslock_status=$(xset q | grep "Caps Lock:" | awk '{print $4}')
+if [ "$capslock_status" = "on" ]; then
+ xdotool mousemove_relative -- -45 0
+else
+ xdotool mousemove_relative -- -11 0
+fi