fix: sway config
This commit is contained in:
parent
d4811e4597
commit
4d2e4fff14
13 changed files with 38 additions and 357 deletions
8
bin/sbar
8
bin/sbar
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue