Updated xmobar st status to recognize process stop
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
curl localhost:8384 &> /dev/null || echo '<fc=#{{base08-hex}}>❄ st off</fc>' > ~/.st-status;
|
curl localhost:8384 -m 1 &> /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=#{{base0E-hex}}>↺ st on</fc>' > ~/.st-status;
|
||||||
sleep 5;
|
sleep 5;
|
||||||
done
|
done
|
||||||
|
@ -770,8 +770,8 @@ Config { font = "Inconsolata 16"
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
curl localhost:8384 &> /dev/null || echo '<fc=#{{base08-hex}}>❄ st off</fc>' > ~/.st-status;
|
curl localhost:8384 -m 1 &> /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=#{{base0E-hex}}>↺ st on</fc>' > ~/.st-status;
|
||||||
sleep 5;
|
sleep 5;
|
||||||
done
|
done
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
Reference in New Issue
Block a user