mirror of
https://github.com/bvanroll/_dotfiles.git
synced 2025-08-29 20:12:42 +00:00
56 lines
1.2 KiB
Markdown
56 lines
1.2 KiB
Markdown
# keyindicator
|
|
|
|
Show the status of capslock or numlock.
|
|
|
|

|
|
|
|
# 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 <color on>] [-C <color off>] [-b <bg color on>] [-B <bg color off>] [--hide]
|
|
-c <color on>: hex color to use when indicator is on
|
|
-C <color off>: hex color to use when indicator is off
|
|
-b <background color on>: hex color to use when indicator is on
|
|
-B <background color off>: hex color to use when indicator is off
|
|
--hide: don't output anything when indicator is off
|
|
|
|
```
|