diff options
Diffstat (limited to 'S.sh')
-rw-r--r-- | S.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |