فهرست منبع

Update laptop external

Vitaliy Timtsurak 3 ماه پیش
والد
کامیت
8974696fef
1فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  1. 9 1
      config/bspwm/bspwmrc

+ 9 - 1
config/bspwm/bspwmrc

@@ -45,7 +45,15 @@ then
 	bspc monitor HDMI-2 -d 6 7 8 9 10
 elif [ $profile == "laptop" ]
 then
-	bspc monitor eDP-1 -d 1 2 3 4 5 6 7
+	bspc monitor eDP-1 -d 6 7 8 9 10
+	bspc monitor HDMI-1-0 -d 1 2 3 4 5
+
+	if [[ $(xrandr -q | grep " connected" | wc -l) -ge 2 ]]; then
+		bspc monitor eDP-1 -d 6 7 8 9 10
+		bspc monitor HDMI-1-0 -d 1 2 3 4 5
+	else
+		bspc monitor eDP-1 -d 1 2 3 4 5 6 7
+	fi
 else
 	_primary=$(xrandr -q | grep "primary" | cut -d' ' -f1)
 	bspc monitor $_primary -d 1 2 3