Add new monitors for polybar and bspwm

This commit is contained in:
Tobias Reisinger 2021-03-19 11:55:16 +01:00
parent 532ba44b2d
commit 0b181d4121
2 changed files with 11 additions and 9 deletions

View file

@ -2,18 +2,20 @@
host_name=$(cat /proc/sys/kernel/hostname)
if [[ $host_name == "portalo" ]]; then
bspc monitor HDMI-1 -n primary
bspc monitor DVI-D-1 -n secondary
primary="HDMI-A-0"
secondary="DVI-D-0"
bspc monitor primary -d web terminal 3 4 5 6 game
bspc monitor secondary -d side-view voip messenger
bspc query -M --names
sleep 0.5
bspc monitor $primary -d web terminal 3 4 5 6 game
bspc monitor $secondary -d side-view voip messenger
bspc wm -O primary secondary
sleep 0.1
bspc wm -O $primary $secondary
elif [[ $host_name == *"laptop"* ]]; then
bspc monitor eDP-1 -d web terminal 3 4 5 6 7 8 9 10
bspc monitor "eDP-1" -d web terminal 3 4 5 6 7 8 9 10
else
bspc monitor primary -d web terminal 3 4 5 6 7 8 9 10
fi

View file

@ -59,12 +59,12 @@
[bar/portalo-primary]
inherit = bar/portalo-base
monitor = HDMI-1
monitor = HDMI-A-0
[bar/portalo-secondary]
inherit = bar/portalo-base
monitor = DVI-D-1
monitor = DVI-D-0
tray-position = none