aboutsummaryrefslogtreecommitdiff
path: root/bspwm
diff options
context:
space:
mode:
Diffstat (limited to 'bspwm')
-rwxr-xr-xbspwm/.config/bspwm/bspwmrc23
1 files changed, 11 insertions, 12 deletions
diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc
index 8ac7ba2..c4dadd7 100755
--- a/bspwm/.config/bspwm/bspwmrc
+++ b/bspwm/.config/bspwm/bspwmrc
@@ -3,17 +3,20 @@ pkill sxhkd
sxhkd -c $HOME/.config/sxhkd/sxhkdrc &
sxhkd -c $HOME/.config/sxhkd/sxhkdrc_bspwm &
-m=$(bspc query -M | wc -l)
-MON=$(xrandr --query | grep -w 'connected' | awk '{print $1}' | head -n 1)
-if [ "$m" = 1 ]
+MONS="$(xrandr --query | grep -w 'connected' | cut -d ' ' -f1)"
+MON_COUNT=$(echo "$MONS" | wc -l)
+PRIMARY=$(echo "$MONS" | head -n 1)
+
+if [ "$MON_COUNT" = 2 ]
then
- bspc monitor "$MON" -d 1 2 3 4 5 6 7 8 9 10
-elif [ "$m" = 2 ]
+ bspc monitor "$PRIMARY" -d 1 2 3 4 5 6 7 8 9
+ bspc monitor HDMI-2 -d 10 || bspc monitor VGA-1 -d 10
+elif [ "$MON_COUNT" = 3 ]
then
- bspc monitor "$MON" -d 1 2 3 4 5 6 7 8 9
- bspc monitor VGA-1 -d 10
+ bspc monitor "$PRIMARY" -d 1 4 5 6 7 8 9
+ (bspc monitor HDMI-2 -d 10 && bspc monitor DP-1 -d 2 3) || bspc monitor VGA-1 -d 10
else
- bspc monitor "$MON" -d 1 2 3 4 5 6 7 8 9 10
+ bspc monitor "$PRIMARY" -d 1 2 3 4 5 6 7 8 9 10
fi
bspc config border_width 3
@@ -40,10 +43,6 @@ bspc rule -a Zathura state=tiled
bspc rule -a dropdown sticky=on state=floating hidden=on
bspc rule -a math sticky=on state=floating hidden=on
bspc rule -a email desktop='9'
-#bspc query -N -n .floating | xargs -I{} bspc node {} -t pseudo_tiled
###---Starting External Scripts---###
-##sleep 2 &
-##bspc wm -O LVDS1 VGA1 &
-#$HOME/.config/bspwm/autostart.sh
$HOME/.config/Scripts/autostart.sh