fix: sway config

This commit is contained in:
AngeD 2023-06-29 12:09:36 +02:00
parent d4811e4597
commit 4d2e4fff14
13 changed files with 38 additions and 357 deletions

View file

@ -70,7 +70,7 @@ reload_bar() {
}
display() {
xsetroot -name "$crypto | $cpu | $memory | $vol | $wlp | $bat | $time"
${DISPLAYCMD[@]} "$crypto | $cpu | $memory | $vol | $wlp | $bat | $time"
}
# SIGNALING
@ -82,6 +82,12 @@ trap 'update_crypto;display' 'RTMIN+2'
## kill -m "$(cat ~/.cache/pidofbar)"
# where m = 34 + n
if [ "$XDG_SESSION_TYPE" = wayland ]; then
DISPLAYCMD=(echo)
else
DISPLAYCMD=(xsetroot -name)
fi
sec=0
while true; do
[ "$((sec % 300))" = 0 ] && update_crypto