2020-05-09 21:26:23 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
sym="|"
|
2020-05-12 12:09:43 +02:00
|
|
|
[ "$(transmission-remote -l | grep %)" ] && delay="10s" || delay="1m"
|
2020-05-09 21:26:23 +02:00
|
|
|
|
|
|
|
cd "$HOME/.local/bin/scripts/dwmbar/" || exit 1
|
|
|
|
|
|
|
|
status() {
|
2020-05-12 12:09:43 +02:00
|
|
|
echo "$(./torrent) $sym $(./disk) $sym $(./internet) $sym $(./lamp) $sym $(./music) $sym" \
|
2020-05-10 13:33:06 +02:00
|
|
|
"$(./alsa) $sym $(./packages) $sym $(./date) $sym $(./clock)"
|
2020-05-09 21:26:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
while :; do
|
|
|
|
xsetroot -name " $(status | tr '\n' ' ')"
|
|
|
|
|
2020-05-12 12:09:43 +02:00
|
|
|
sleep "$delay"
|
2020-05-09 21:26:23 +02:00
|
|
|
done
|