diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2023-01-24 17:36:36 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2023-01-24 17:36:36 +0530 |
commit | fd6979ba8b9eeada306f521165f956e1bf828610 (patch) | |
tree | 34b8ddee63e7e7d10ad979ad4c8022c434406966 /.scripts/kbesccaps | |
parent | 6fdbeb79f7d9937b07016ede653d02d3ddf08877 (diff) |
volume-low icon not showing fix+ kbesccaps noreq for lsusb
Diffstat (limited to '.scripts/kbesccaps')
-rwxr-xr-x | .scripts/kbesccaps | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/.scripts/kbesccaps b/.scripts/kbesccaps index b6b187c..d650fa5 100755 --- a/.scripts/kbesccaps +++ b/.scripts/kbesccaps @@ -4,7 +4,8 @@ ##whenever I plug in any of my keyboard (wired or wireless) #PreRequisite lsusb/usbutils -[ -z "$(command -v lsusb)" ] && echo "Install usbutils" && exit +#[ -z "$(command -v lsusb)" ] && echo "Install usbutils" && exit +#[ -n "$(lsusb | grep -e 04f3:152e -e 25a7:fa67)" ] && setxkbmap -option caps:escape || exit #for cronjob export DISPLAY=:0 @@ -12,7 +13,3 @@ export DISPLAY=:0 #If setxkbmap query string is of zero length #then setxkbmap set caps lock as esc key [[ -z "$(setxkbmap -query | grep "caps:escape")" ]] && setxkbmap -option caps:escape - -#[ -n "$(lsusb | grep -e 04f3:152e -e 25a7:fa67)" ] && setxkbmap -option caps:escape || exit - - |