summaryrefslogtreecommitdiff
path: root/.scripts/kbesccaps
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/kbesccaps')
-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