diff options
author | srv <enmanuel.saravia.externo@pandero.com.pe> | 2025-05-05 15:49:36 -0500 |
---|---|---|
committer | srv <enmanuel.saravia.externo@pandero.com.pe> | 2025-05-05 15:49:36 -0500 |
commit | 3b1f02e4f5248145ce16e5d95b9a57d847dab38b (patch) | |
tree | 60160bef2930ba5411b694e2915dbd44adbcc55b /S.sh |
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 |