Small fix in 'dbar' and 'refbar'

This commit is contained in:
Wiktor Zykubek 2020-05-14 10:45:21 +02:00
parent 2fc20cccb9
commit 824f9317f3
2 changed files with 14 additions and 4 deletions

View File

@ -6,12 +6,22 @@ sym="|"
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)"
cat << EOF
$(./torrent) $sym
$(./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' ' ')"
xsetroot -name " $(status | tr '\n' ' ')"
sleep "$delay"
done

View File

@ -1,3 +1,3 @@
#!/bin/sh
pkill -SIGTRAP dbar && dbar &
pkill -SIGTRAP dbar && dbar 2>/dev/null &