2020-05-14 12:29:22 +02:00

30 lines
438 B
Bash
Executable File

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