diff --git a/home-manager/features/desktop/dwm/.xinitrc b/home-manager/features/desktop/dwm/.xinitrc index be99cdf..796d60f 100755 --- a/home-manager/features/desktop/dwm/.xinitrc +++ b/home-manager/features/desktop/dwm/.xinitrc @@ -40,10 +40,6 @@ export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx export GLFW_IM_MODULE=ibus -# some merges -xrdb merge .Xresources & -xsetroot -cursor_name left_ptr & - # compositor picom -b --vsync & @@ -135,5 +131,10 @@ dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XA # redshift & +# some merges +# xrdb merge .Xresources & +# xsetroot -cursor_name left_ptr & + # start dwm exec dwm + diff --git a/home-manager/features/desktop/dwm/bar.sh b/home-manager/features/desktop/dwm/bar.sh index c4caa2e..79147c1 100644 --- a/home-manager/features/desktop/dwm/bar.sh +++ b/home-manager/features/desktop/dwm/bar.sh @@ -163,6 +163,7 @@ net() { fi } + while true; do # [ $interval = 0 ] || [ $(($interval % 3600)) = 0 ] && updates=$(pkg_updates) @@ -170,10 +171,11 @@ while true; do # sleep 1 && xsetroot -name "$updates $(battery) $(brightness) $(cpu) $(mem) $(wlan) $(clock)" # sleep 1 && xsetroot -name "$(battery) $(brightness) $(cpu) $(mem) $(wlan) $(clock)" - if hash dockd 2>/dev/null; then - sleep 1 && xsetroot -name "^c$foreground^^b$background1^ $(brightness) ^b$background0^ $(battery) $(net)^c$foreground^^b$background0^ $(today) ^b$background1^ $(clock) ^b$background2^ $(pulse) " - else - sleep 1 && xsetroot -name "^c$foreground^$(net)^c$foreground^^b$background0^ $(today) ^b$background1^ $(clock) ^b$background2^ $(pulse) " - fi - + # if hash dockd 2>/dev/null; then + # sleep 1 && xsetroot -name "^c$foreground^^b$background1^ $(brightness) ^b$background0^ $(battery) $(net)^c$foreground^^b$background0^ $(today) ^b$background1^ $(clock) ^b$background2^ $(pulse) " + # else + sleep 1 && xsetroot -name "^c$foreground^$(net)^c$foreground^^b$background0^ $(today) ^b$background1^ $(clock) ^b$background2^ $(pulse) " + xsetroot -cursor_name left_ptr + # fi + done