Update .config/polybar/launch.sh
This commit is contained in:
parent
4f34f9166f
commit
d97d55f378
1 changed files with 7 additions and 1 deletions
|
@ -20,7 +20,13 @@ launch_bar()
|
|||
else
|
||||
if type "xrandr" &>/dev/null; then
|
||||
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||
MONITOR=$m polybar -q main -c "$dir/$style/config.ini" &
|
||||
bar="main"
|
||||
|
||||
if [[ "$m" == "DP-0" ]]; then
|
||||
bar="tray"
|
||||
fi
|
||||
|
||||
MONITOR=$m polybar -q "$bar" -c "$dir/$style/config.ini" &
|
||||
done
|
||||
else
|
||||
polybar -q main -c "$dir/$style/config.ini" &
|
||||
|
|
Loading…
Reference in a new issue