aboutsummaryrefslogtreecommitdiff
path: root/leds
diff options
context:
space:
mode:
Diffstat (limited to 'leds')
-rwxr-xr-xleds25
1 files changed, 0 insertions, 25 deletions
diff --git a/leds b/leds
deleted file mode 100755
index 22ff769..0000000
--- a/leds
+++ /dev/null
@@ -1,25 +0,0 @@
-#! /bin/bash
-#
-# Get keyboard led state.
-# See https://bbs.archlinux.org/viewtopic.php?id=68511
-#
-
-ledstate="`xset q 2>/dev/null | grep LED`"
-ledstate="`echo $ledstate | sed s/[^1-9]//g`"
-case "$ledstate" in
- '1')
- echo "[CapsLock] "
- ;;
- '2')
- # Right now we're not interested on NumLock status
- #echo "[NumLock]"
- echo ""
- ;;
- '3')
- # Right now we're not interested on NumLock status
- #echo "[CapsLock][NumLock]"
- echo "[CapsLock] "
- ;;
- *)
- echo ""
-esac