summaryrefslogtreecommitdiff
path: root/S.sh
diff options
context:
space:
mode:
Diffstat (limited to 'S.sh')
-rw-r--r--S.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/S.sh b/S.sh
new file mode 100644
index 0000000..cb814ae
--- /dev/null
+++ b/S.sh
@@ -0,0 +1,7 @@
+#!/bin/dash
+capslock_status=$(xset q | grep "Caps Lock:" | awk '{print $4}')
+if [ "$capslock_status" = "on" ]; then
+ xdotool mousedown 2
+else
+ xdotool mouseup 2
+fi \ No newline at end of file