]> gitweb.fluxo.info Git - scripts.git/commitdiff
Changing leds output
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 21 Feb 2013 22:42:58 +0000 (19:42 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 21 Feb 2013 22:42:58 +0000 (19:42 -0300)
leds

diff --git a/leds b/leds
index 40c83924d9bc19937edcbd1ec6b16fd97db14b3f..4d6639f5d030372561bad23a1427c69812ed73a2 100755 (executable)
--- 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