os/arch (bspwm): improve multimonitor desktop config
This commit is contained in:
		
							parent
							
								
									97c5398e4f
								
							
						
					
					
						commit
						0bb20dab4a
					
				| 
						 | 
					@ -38,14 +38,20 @@ bspc config active_border_color  "${COLOR[13]}"
 | 
				
			||||||
# Displays
 | 
					# Displays
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
NMON=$(bspc query -M | wc -l)
 | 
					host=$(hostname)
 | 
				
			||||||
bspc monitor ${monitors} -d 1/{desktop,code,web,chat,art,media,music}
 | 
					case $host in
 | 
				
			||||||
i=2
 | 
					    triton*)
 | 
				
			||||||
for monitor in $(bspc query -M | tail -n +2); do
 | 
					        bspc monitor DVI-I-1 -n 1
 | 
				
			||||||
    bspc monitor $monitor -n "$i" -d $i/{desktop,web,code,chat}
 | 
					        bspc monitor HDMI-0  -n 2
 | 
				
			||||||
    let i++
 | 
					        bspc monitor DVI-D-0 -n 3
 | 
				
			||||||
done
 | 
					        ;;
 | 
				
			||||||
unset i
 | 
					esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					nmon=$(bspc query -M | wc -l)
 | 
				
			||||||
 | 
					bspc monitor 1 -d 1/{desktop,web,code,art,games}
 | 
				
			||||||
 | 
					[[ $nmon > 2 ]] && bspc monitor 2 -d 2/{desktop,music,chat}
 | 
				
			||||||
 | 
					[[ $nmon > 3 ]] && bspc monitor 3 -d 3/{desktop,media}
 | 
				
			||||||
 | 
					[[ $nmon > 4 ]] && bspc monitor 4 -d 4/{desktop,web,chat,media}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue