diff options
Diffstat (limited to 'bin/status.sh')
| -rwxr-xr-x | bin/status.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/status.sh b/bin/status.sh index 7ad178e..24f0f59 100755 --- a/bin/status.sh +++ b/bin/status.sh @@ -14,8 +14,7 @@ pulseaudio() { } network() { - # ssid=$(iwgetid -r) - ssid= + ssid=$(iwgetid -r) if [ -n "$ssid" ]; then symbol="直" else @@ -45,7 +44,11 @@ clock() { echo "<span foreground=\"#7dc4e4\"> $(date '+%b %d %H:%M')</span>" } -while true; do - sleep 0.2 +until [ -e "$XDG_RUNTIME_DIR/somebar-0" ]; do + true +done + +while [ -e "$XDG_RUNTIME_DIR/somebar-0" ]; do somebar -c status "$(pulseaudio) | $(network) | $(brightness) | $(battery) | $(clock)" || true + sleep 0.2 done |
