update: dwmblocks icons; add: correct versions

This commit is contained in:
odweta
2026-05-26 14:35:28 +02:00
parent a9855f8d3e
commit 67d2dcc3b5
29 changed files with 255 additions and 2700 deletions
+20 -1
View File
@@ -1,3 +1,22 @@
#!/usr/bin/env bash
mpc status | head -1
STATUS=$(mpc status | head -1)
STATUS_TAIL=$(mpc status | tail -1)
NAME=$STATUS
ICON=""
if [[ "$(echo $STATUS | awk -F ": " '{print $1}')" == "volume" ]]; then
NAME="silence"
fi
# random
if [[ "$(echo $STATUS_TAIL | awk -F " " '{print $6}')" == "on" ]]; then
ICON="$ICON "
fi
# repeat
if [[ "$(echo $STATUS_TAIL | awk -F " " '{print $4}')" == "on" ]]; then
ICON="$ICON "
fi
echo -n "$ICON$NAME"