diff --git a/polybar/.config/polybar/launch.sh b/polybar/.config/polybar/launch.sh index 155d9ee28..bf2f101f4 100755 --- a/polybar/.config/polybar/launch.sh +++ b/polybar/.config/polybar/launch.sh @@ -24,8 +24,8 @@ OTHERS=$(xrandr --query | grep " connected" | grep -v "primary" | cut -d" " -f1) # Launch bar1 and bar2 if type "xrandr" > /dev/null; then - TOP_BAR_CONFIG=$HOME/.config/polybar/$MC/config_top.ini - BOTTOM_BAR_CONFIG=$HOME/.config/polybar/$MC/config_bottom.ini + TOP_BAR_CONFIG=$HOME/.config/polybar/monitor_$MC/config_top.ini + BOTTOM_BAR_CONFIG=$HOME/.config/polybar/monitor_$MC/config_bottom.ini # Launch on primary monitor MONITOR=$PRIMARY polybar --reload -c "$TOP_BAR_CONFIG" $BAR_NAME & @@ -35,8 +35,8 @@ if type "xrandr" > /dev/null; then for m in $OTHERS; do MC=$((MC+1)) - TOP_BAR_CONFIG=$HOME/.config/polybar/$MC/config_top.ini - BOTTOM_BAR_CONFIG=$HOME/.config/polybar/$MC/config_bottom.ini + TOP_BAR_CONFIG=$HOME/.config/polybar/monitor_$MC/config_top.ini + BOTTOM_BAR_CONFIG=$HOME/.config/polybar/monitor_$MC/config_bottom.ini MONITOR=$m polybar --reload -c "$TOP_BAR_CONFIG" $BAR_NAME & MONITOR=$m polybar --reload -c "$BOTTOM_BAR_CONFIG" $BAR_NAME & diff --git a/polybar/.config/polybar/0/config_bottom.ini b/polybar/.config/polybar/monitor_0/config_bottom.ini similarity index 100% rename from polybar/.config/polybar/0/config_bottom.ini rename to polybar/.config/polybar/monitor_0/config_bottom.ini diff --git a/polybar/.config/polybar/0/config_top.ini b/polybar/.config/polybar/monitor_0/config_top.ini similarity index 100% rename from polybar/.config/polybar/0/config_top.ini rename to polybar/.config/polybar/monitor_0/config_top.ini diff --git a/polybar/.config/polybar/1/config_bottom.ini b/polybar/.config/polybar/monitor_1/config_bottom.ini similarity index 100% rename from polybar/.config/polybar/1/config_bottom.ini rename to polybar/.config/polybar/monitor_1/config_bottom.ini diff --git a/polybar/.config/polybar/1/config_top.ini b/polybar/.config/polybar/monitor_1/config_top.ini similarity index 100% rename from polybar/.config/polybar/1/config_top.ini rename to polybar/.config/polybar/monitor_1/config_top.ini