Adding lots of cool stuff to dotfiles
This commit is contained in:
23
.config/i3blocks/CapsNumLock/capsnumlock.sh
Normal file
23
.config/i3blocks/CapsNumLock/capsnumlock.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
CMD=$(xset -q | grep Caps)
|
||||
# echo $CMD
|
||||
CAPS=$(echo $CMD | awk '{print $4}')
|
||||
NUMS=$(echo $CMD | awk '{print $8}')
|
||||
|
||||
if [ $CAPS = "on" ]
|
||||
then
|
||||
CAPS_ICON="⏏️"
|
||||
else
|
||||
CAPS_ICON="⬆️"
|
||||
fi
|
||||
|
||||
if [ $NUMS = "on" ]
|
||||
then
|
||||
NUMS_ICON="♾️"
|
||||
else
|
||||
NUMS_ICON="🔢"
|
||||
fi
|
||||
|
||||
echo "$CAPS_ICON""$NUMS_ICON"
|
||||
|
||||
Reference in New Issue
Block a user