rename folders with monitor_

This commit is contained in:
The-Repo-Club 2022-10-27 13:47:53 +01:00
parent 9efba46ad6
commit bb1528d6a7
No known key found for this signature in database
GPG Key ID: E30EC2FBFB05C44F
5 changed files with 4 additions and 4 deletions

View File

@ -24,8 +24,8 @@ OTHERS=$(xrandr --query | grep " connected" | grep -v "primary" | cut -d" " -f1)
# Launch bar1 and bar2 # Launch bar1 and bar2
if type "xrandr" > /dev/null; then if type "xrandr" > /dev/null; then
TOP_BAR_CONFIG=$HOME/.config/polybar/$MC/config_top.ini TOP_BAR_CONFIG=$HOME/.config/polybar/monitor_$MC/config_top.ini
BOTTOM_BAR_CONFIG=$HOME/.config/polybar/$MC/config_bottom.ini BOTTOM_BAR_CONFIG=$HOME/.config/polybar/monitor_$MC/config_bottom.ini
# Launch on primary monitor # Launch on primary monitor
MONITOR=$PRIMARY polybar --reload -c "$TOP_BAR_CONFIG" $BAR_NAME & 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 for m in $OTHERS; do
MC=$((MC+1)) MC=$((MC+1))
TOP_BAR_CONFIG=$HOME/.config/polybar/$MC/config_top.ini TOP_BAR_CONFIG=$HOME/.config/polybar/monitor_$MC/config_top.ini
BOTTOM_BAR_CONFIG=$HOME/.config/polybar/$MC/config_bottom.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 "$TOP_BAR_CONFIG" $BAR_NAME &
MONITOR=$m polybar --reload -c "$BOTTOM_BAR_CONFIG" $BAR_NAME & MONITOR=$m polybar --reload -c "$BOTTOM_BAR_CONFIG" $BAR_NAME &