Updated xmobar st status to recognize process stop

This commit is contained in:
Emmet 2023-06-20 17:01:13 -05:00
parent 83d7e41249
commit 4d32d11d1d
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
#!/bin/sh
while true
do
curl localhost:8384 &> /dev/null || echo '<fc=#{{base08-hex}}>❄ st off</fc>' > ~/.st-status;
curl localhost:8384 &> /dev/null && echo '<fc=#{{base0E-hex}}>↺ st on</fc>' > ~/.st-status;
curl localhost:8384 -m 1 &> /dev/null || echo '<fc=#{{base08-hex}}>❄ st off</fc>' > ~/.st-status;
curl localhost:8384 -m 1 &> /dev/null && echo '<fc=#{{base0E-hex}}>↺ st on</fc>' > ~/.st-status;
sleep 5;
done

View file

@ -770,8 +770,8 @@ Config { font = "Inconsolata 16"
#!/bin/sh
while true
do
curl localhost:8384 &> /dev/null || echo '<fc=#{{base08-hex}}>❄ st off</fc>' > ~/.st-status;
curl localhost:8384 &> /dev/null && echo '<fc=#{{base0E-hex}}>↺ st on</fc>' > ~/.st-status;
curl localhost:8384 -m 1 &> /dev/null || echo '<fc=#{{base08-hex}}>❄ st off</fc>' > ~/.st-status;
curl localhost:8384 -m 1 &> /dev/null && echo '<fc=#{{base0E-hex}}>↺ st on</fc>' > ~/.st-status;
sleep 5;
done
#+END_SRC