i3status-wrapper: Usar colores de themer.lua

This commit is contained in:
Cat /dev/Nulo 2022-04-10 16:56:56 -03:00
parent ecabff30f5
commit a27f567650
2 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
. ~/.profile . ~/.profile
. ~/.cache/themer.lua/shell
i3status | while true; do i3status | while true; do
read line read line
@ -10,9 +11,9 @@ i3status | while true; do
else else
zeit="$(zeit tracking --no-colors)" zeit="$(zeit tracking --no-colors)"
if echo "$zeit" | grep -F tracking >/dev/null; then if echo "$zeit" | grep -F tracking >/dev/null; then
color="#FF0000" color="$accent"
else else
color="#000000" color="$foreground"
fi fi
zeit_obj='{"name":"zeit","instance":"zeit","color":"'$color'","markup":"none","full_text":"'$zeit'"}' zeit_obj='{"name":"zeit","instance":"zeit","color":"'$color'","markup":"none","full_text":"'$zeit'"}'
json_array="$(echo $json_array | jq ". |= [$zeit_obj] + .")" json_array="$(echo $json_array | jq ". |= [$zeit_obj] + .")"

@ -1 +1 @@
Subproject commit 53b2f5caad07178e75a85464f4e6e059685bced7 Subproject commit 08f35148f1ef99c6cb0aa1feb69681e0a592b895