diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-02-21 19:42:58 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-02-21 19:42:58 -0300 |
commit | cb07c11027594134b2d62b1ca53141e92e98a692 (patch) | |
tree | 5f51cd4f9514467036e51a040ab7efebb56969d2 | |
parent | 4f06899111090b694b2e441495f9a1c521e4708c (diff) | |
download | scripts-cb07c11027594134b2d62b1ca53141e92e98a692.tar.gz scripts-cb07c11027594134b2d62b1ca53141e92e98a692.tar.bz2 |
Changing leds output
-rwxr-xr-x | leds | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |