aboutsummaryrefslogtreecommitdiff
path: root/leds
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-21 19:42:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-02-21 19:42:58 -0300
commitcb07c11027594134b2d62b1ca53141e92e98a692 (patch)
tree5f51cd4f9514467036e51a040ab7efebb56969d2 /leds
parent4f06899111090b694b2e441495f9a1c521e4708c (diff)
downloadscripts-cb07c11027594134b2d62b1ca53141e92e98a692.tar.gz
scripts-cb07c11027594134b2d62b1ca53141e92e98a692.tar.bz2
Changing leds output
Diffstat (limited to 'leds')
-rwxr-xr-xleds12
1 files changed, 6 insertions, 6 deletions
diff --git a/leds b/leds
index 40c8392..4d6639f 100755
--- a/leds
+++ b/leds
@@ -4,18 +4,18 @@
# 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`
+ledstate="`xset q 2>/dev/null | grep LED`"
+ledstate="`echo $ledstate | sed s/[^1-9]//g`"
case "$ledstate" in
'1')
- echo "C."
+ echo "[CapsLock]"
;;
'2')
- echo ".N"
+ echo "[NumLock]"
;;
'3')
- echo "CN"
+ echo "[CapsLock][NumLock]"
;;
*)
- echo ".."
+ echo ""
esac