2020-05-13 15:07:01 +02:00

18 lines
392 B
Bash
Executable File

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