diff --git a/polybar-themes/sblocks/config-4k.ini b/polybar-themes/sblocks/config-4k.ini index e53adf0..34ff664 100644 --- a/polybar-themes/sblocks/config-4k.ini +++ b/polybar-themes/sblocks/config-4k.ini @@ -147,9 +147,10 @@ font-3 = "Source Han Sans JP:size=8;3" ; modules-left = sep menu sep workspaces sep cust-mpd-prev custom-mpd cust-mpd-next modules-left = sep launcher sep bspwm-workspaces chrome flameshot color-picker sep cust-mpd-icon cust-mpd-prev custom-mpd cust-mpd-next -modules-center = title-icon title package-updates-trigger package-updates +; modules-center = title-icon title package-updates-trigger package-updates +modules-center = ; modules-right = color-switch sep alsa sep battery sep network sep date sep sysmenu sep -modules-right = sep bluetooth-4k sep pulseaudio sep battery sep network sep date weather sep sysmenu sep +modules-right = package-updates-trigger package-updates bluetooth-4k sep pulseaudio sep battery sep network sep date weather sep sysmenu sep ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ @@ -180,7 +181,7 @@ locale = en_US.UTF-8 ; center ; right ; none -tray-position = none +tray-position = center ; If true, the bar will not shift its ; contents when the tray changes diff --git a/scripts/launch.sh b/scripts/launch.sh index 37f04a9..0a3d2f9 100755 --- a/scripts/launch.sh +++ b/scripts/launch.sh @@ -6,18 +6,18 @@ killall -q polybar # Wait until the processes have been shut down -while pgrep -u "$UID" -x polybar >/dev/null; do sleep 1; done +while pgrep -u "$UID" -x polybar > /dev/null; do sleep 1; done # polybar -c ~/i3/configs/config.ini main & # polybar -c ~/SudacodeRice/polybar/config.ini main & # polybar -c ~/SudacodeRice/polybar/config.ini main & if type "xrandr"; then - for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do - # MONITOR=$m polybar --reload -c ~/SudacodeRice/polybar/config.desktop.ini main & - # update to use new theme - MONITOR=$m polybar --reload -c "$HOME/SudacodeRice/polybar-themes/sblocks/config-4k.ini" main & - done + for m in $(xrandr --query | grep -E " connected" | cut -d" " -f1); do + # MONITOR=$m polybar --reload -c ~/SudacodeRice/polybar/config.desktop.ini main & + # update to use new theme + MONITOR=$m polybar --reload -c "$HOME/SudacodeRice/polybar-themes/sblocks/config-4k.ini" main & + done else - polybar --reload example & + polybar --reload example & fi