summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-05-23 19:46:22 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-05-23 19:46:22 +0530
commite1a102e14ae22018c0731de61ed517b9a7cacbf9 (patch)
tree36f8d53a26e152a379057e274ee01e8be6b16e4e
parent415ba843c0dc66bcb84ae0fbd239b40b6818896b (diff)
Caps Lock Escape keyswitch script to run as cronjob
-rwxr-xr-x.scripts/kbesccaps10
1 files changed, 10 insertions, 0 deletions
diff --git a/.scripts/kbesccaps b/.scripts/kbesccaps
new file mode 100755
index 0000000..c426f82
--- /dev/null
+++ b/.scripts/kbesccaps
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+##Simple shellscript to set CapsLock key to Escape key automatically
+##whenever I plug in any of my keyboard (wired or wireless)
+
+#PreRequisite lsusb/usbutils
+[ -z "command -v lsusb" ] && echo "Install usbutils" && exit
+
+
+[ -n 'lsusb | grep "04f3:152e"' ] && setxkbmap -option caps:escape