| 
									
										
										
										
											2021-08-15 16:28:10 +01:00
										 |  |  | #! /bin/sh | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export BSPWM_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/bspwm" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-05 10:45:01 +01:00
										 |  |  | # restore theme colours | 
					
						
							|  |  |  | walcache="$HOME/.cache/wal" | 
					
						
							|  |  |  | . "$walcache/colors.sh" | 
					
						
							|  |  |  | xrdb "$walcache/colors.Xresources" | 
					
						
							| 
									
										
										
										
											2021-08-15 16:28:10 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-21 17:57:24 +01:00
										 |  |  | # launch bar | 
					
						
							|  |  |  | . $SCRIPTS/bar/launch | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-15 16:28:10 +01:00
										 |  |  | bspc monitor --reset-desktops 1 2 3 4 5 6 7 8 9 0 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-21 17:57:24 +01:00
										 |  |  | bspc config border_width		0 | 
					
						
							| 
									
										
										
										
											2021-08-15 16:28:10 +01:00
										 |  |  | bspc config window_gap          0 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-05 10:45:01 +01:00
										 |  |  | bspc config top_padding         0 | 
					
						
							|  |  |  | bspc config bottom_padding      0 | 
					
						
							|  |  |  | bspc config left_padding        0 | 
					
						
							|  |  |  | bspc config right_padding       0 | 
					
						
							| 
									
										
										
										
											2021-08-15 16:28:10 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | bspc config split_ratio			0.52 | 
					
						
							|  |  |  | bspc config borderless_monocle	true | 
					
						
							|  |  |  | bspc config gapless_monocle		true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # generic rules | 
					
						
							|  |  |  | bspc rule -a Dialog state=floating | 
					
						
							|  |  |  | bspc rule -a Prompt state=floating | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | bspc config focused_border_color		"$color2" | 
					
						
							|  |  |  | bspc config active_border_color			"$color1" | 
					
						
							|  |  |  | bspc config normal_border_color			"$color1" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if [ "$1" = "reload" ]; then | 
					
						
							|  |  |  | 	echo "reloaded config." | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  | 	"$BSPWM_CONFIG/autostart" & | 
					
						
							|  |  |  | fi |