From 0b181d4121f62ad4c1904feaed8c99335d3a5f36 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Fri, 19 Mar 2021 11:55:16 +0100 Subject: [PATCH] Add new monitors for polybar and bspwm --- .config/bspwm/bspwmrc | 16 +++++++++------- .config/polybar/bars.ini | 4 ++-- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index b24d5ed..0011855 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -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 diff --git a/.config/polybar/bars.ini b/.config/polybar/bars.ini index fb30558..3cb8768 100644 --- a/.config/polybar/bars.ini +++ b/.config/polybar/bars.ini @@ -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