diff options
| author | kd <kdam0@localhost.localdomain> | 2020-08-07 15:44:02 +0000 |
|---|---|---|
| committer | kd <kdam0@localhost.localdomain> | 2020-08-07 15:44:02 +0000 |
| commit | 17f480835f30ba35d5f77bc23a9cb2c8075d212e (patch) | |
| tree | 9f89e3f0d65e12b5935798e20313840e04ff4a26 /bspwm | |
| parent | 12a0cab63e72121319656d7e63ec9cec4358479d (diff) | |
updated screen.sh with tripple mon profile
Diffstat (limited to 'bspwm')
| -rwxr-xr-x | bspwm/.config/bspwm/bspwmrc | 23 |
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 |
