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 /Q.sh |
Diffstat (limited to 'Q.sh')
-rwxr-xr-x | Q.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 mousemove_relative -- -45 -45 +else + xdotool mousemove_relative -- -11 -11 +fi |