mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2025-07-05 03:29:41 +03:00
Move old config to old-dots branch
This commit is contained in:
14
.config/eww/bar/scripts/indicator
Executable file
14
.config/eww/bar/scripts/indicator
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
query=$(xset q | grep -Po "(?:Caps|Num|Scroll)\s+Lock:\s*(\w*)" | grep -Po "(off|on)")
|
||||
|
||||
|
||||
result=""
|
||||
for i in $query
|
||||
do
|
||||
[ $i = "off" ] && result+="ﰊ "|| result+="ﰉ "
|
||||
done
|
||||
|
||||
# somehow results are shown reversed. So i am reversing them here to fix it
|
||||
echo $result | rev | xargs
|
||||
|
Reference in New Issue
Block a user