mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Updated xmobar st status to recognize process stop
This commit is contained in:
parent
83d7e41249
commit
4d32d11d1d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue