Wiktor Zykubek 0e831ebd9f Update few files
I'm to lazy to describe it... fuck me
2020-08-16 20:37:29 +02:00

34 lines
510 B
Bash
Executable File

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