Add new monitors for polybar and bspwm
This commit is contained in:
parent
532ba44b2d
commit
0b181d4121
2 changed files with 11 additions and 9 deletions
|
@ -2,18 +2,20 @@
|
||||||
|
|
||||||
host_name=$(cat /proc/sys/kernel/hostname)
|
host_name=$(cat /proc/sys/kernel/hostname)
|
||||||
if [[ $host_name == "portalo" ]]; then
|
if [[ $host_name == "portalo" ]]; then
|
||||||
bspc monitor HDMI-1 -n primary
|
primary="HDMI-A-0"
|
||||||
bspc monitor DVI-D-1 -n secondary
|
secondary="DVI-D-0"
|
||||||
|
|
||||||
bspc monitor primary -d web terminal 3 4 5 6 game
|
bspc query -M --names
|
||||||
bspc monitor secondary -d side-view voip messenger
|
|
||||||
|
|
||||||
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
|
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
|
else
|
||||||
bspc monitor primary -d web terminal 3 4 5 6 7 8 9 10
|
bspc monitor primary -d web terminal 3 4 5 6 7 8 9 10
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -59,12 +59,12 @@
|
||||||
[bar/portalo-primary]
|
[bar/portalo-primary]
|
||||||
inherit = bar/portalo-base
|
inherit = bar/portalo-base
|
||||||
|
|
||||||
monitor = HDMI-1
|
monitor = HDMI-A-0
|
||||||
|
|
||||||
[bar/portalo-secondary]
|
[bar/portalo-secondary]
|
||||||
inherit = bar/portalo-base
|
inherit = bar/portalo-base
|
||||||
|
|
||||||
monitor = DVI-D-1
|
monitor = DVI-D-0
|
||||||
tray-position = none
|
tray-position = none
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue