Add ac-adaptive and ac-i3
This commit is contained in:
13
launch.sh
13
launch.sh
@@ -13,15 +13,20 @@ launch_bar() {
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch the bar multi monitor aware
|
||||
primary=$(xrandr --query | grep "connected" | grep "primary" | cut -d \ -f1)
|
||||
for mon in $(polybar --list-monitors | cut -d":" -f1); do
|
||||
|
||||
if [[ "$style" == "hack" || "$style" == "cuts" ]]; then
|
||||
MONITOR=$mon polybar -q top -c "$dir/$style/config.ini" &
|
||||
MONITOR=$mon TRAY_POS=$tray_pos polybar -q top -c "$dir/$style/config.ini" &
|
||||
MONITOR=$mon polybar -q bottom -c "$dir/$style/config.ini" &
|
||||
elif [[ "$style" == "pwidgets" ]]; then
|
||||
MONITOR=$mon bash "$dir"/pwidgets/launch.sh --main
|
||||
else
|
||||
MONITOR=$mon polybar -q main -c "$dir/$style/config.ini" &
|
||||
# If primary monitor load up [bar/primary] instead of [bar/main]
|
||||
if [ "$mon" = "$primary" ]; then
|
||||
MONITOR=$mon polybar -q primary -c "$dir/$style/config.ini" &
|
||||
else
|
||||
MONITOR=$mon polybar -q main -c "$dir/$style/config.ini" &
|
||||
fi
|
||||
#MONITOR=$mon TRAY_POS=$tray_pos polybar -q main -c "$dir/$style/config.ini" &
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user