# keyindicator Show the status of capslock or numlock. ![](keyindicator-active-vs-inactive.png) # Installation Add the following bindings to i3 config file: ``` bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks ``` Use the following in your i3blocks config file: ``` ini [keyindicator] command=$SCRIPT_DIR/keyindicator #Allowed keys are CAPS and NUM KEY=CAPS markup=pango interval=once signal=11 #TEXT_ON=CapsLockOn #TEXT_OFF=CapsLockOff #COLOR_ON=#00FF00 #COLOR_OFF=#222222 #BG_COLOR_ON= #BG_COLOR_OFF= [keyindicator] command=$SCRIPT_DIR/keyindicator KEY=NUM markup=pango interval=once signal=11 #TEXT_ON=NumLockOn #TEXT_OFF=NumLockOff #COLOR_ON=#00FF00 HIDE_WHEN_OFF=1 ``` # Options ``` Usage: keyindicator [-c ] [-C ] [-b ] [-B ] [--hide] -c : hex color to use when indicator is on -C : hex color to use when indicator is off -b : hex color to use when indicator is on -B : hex color to use when indicator is off --hide: don't output anything when indicator is off ```