Migrate from qtile bar to eww widgets

This commit is contained in:
2022-03-25 19:10:57 +03:00
parent c2c1a13ed3
commit 375bf79693
23 changed files with 1451 additions and 188 deletions

View 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