From bb1528d6a78eea4dae9a7468af0f346aaff269c5 Mon Sep 17 00:00:00 2001 From: The-Repo-Club Date: Thu, 27 Oct 2022 13:47:53 +0100 Subject: [PATCH] rename folders with monitor_ --- polybar/.config/polybar/launch.sh | 8 ++++---- .../.config/polybar/{0 => monitor_0}/config_bottom.ini | 0 polybar/.config/polybar/{0 => monitor_0}/config_top.ini | 0 .../.config/polybar/{1 => monitor_1}/config_bottom.ini | 0 polybar/.config/polybar/{1 => monitor_1}/config_top.ini | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename polybar/.config/polybar/{0 => monitor_0}/config_bottom.ini (100%) rename polybar/.config/polybar/{0 => monitor_0}/config_top.ini (100%) rename polybar/.config/polybar/{1 => monitor_1}/config_bottom.ini (100%) rename polybar/.config/polybar/{1 => monitor_1}/config_top.ini (100%) 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