| 
									
										
										
										
											2017-05-03 16:10:13 +03:00
										 |  |  | #!/usr/bin/env bash | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-09 00:34:57 +03:00
										 |  |  | nullexec() { "$@" &>/dev/null; } | 
					
						
							| 
									
										
										
										
											2017-05-03 16:10:13 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | PATH+=":$HOME/.config/alternatives" | 
					
						
							|  |  |  | PATH+=":$HOME/.config/bspwm/bin" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Cursor for the root window | 
					
						
							|  |  |  | xsetroot -cursor_name left_ptr | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Global config | 
					
						
							| 
									
										
										
										
											2019-10-03 12:03:31 +03:00
										 |  |  | bspc config focused_border_color            "#67748F" | 
					
						
							| 
									
										
										
										
											2017-05-03 16:10:13 +03:00
										 |  |  | bspc config normal_border_color             "#1f1f1f" | 
					
						
							|  |  |  | bspc config window_gap                      "9" | 
					
						
							|  |  |  | bspc config border_width                    '2' | 
					
						
							|  |  |  | bspc config split_ratio                     '0.52' | 
					
						
							|  |  |  | bspc config borderless_monocle              'false' | 
					
						
							|  |  |  | bspc config gapless_monocle                 'false' | 
					
						
							|  |  |  | bspc config ignore_ewmh_focus               'true' | 
					
						
							|  |  |  | bspc config initial_polarity                'second_child' | 
					
						
							| 
									
										
										
										
											2020-12-09 00:34:57 +03:00
										 |  |  | bspc config click_to_focus                  'button1' | 
					
						
							| 
									
										
										
										
											2017-05-03 16:10:13 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Workspaces and monitors | 
					
						
							| 
									
										
										
										
											2020-12-09 00:34:57 +03:00
										 |  |  | bspc monitor -d                             1 2 3 4 5 6 7 8 9 0 q w e r t y h | 
					
						
							| 
									
										
										
										
											2017-05-03 16:10:13 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Float some bastards | 
					
						
							| 
									
										
										
										
											2020-12-09 00:34:57 +03:00
										 |  |  | #bspfloat 1 & | 
					
						
							| 
									
										
										
										
											2017-05-03 16:10:13 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Individual padding | 
					
						
							|  |  |  | for d in 1 3; do | 
					
						
							|  |  |  | 	bspset -d "$d" padding 48 | 
					
						
							|  |  |  | done | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-09 00:34:57 +03:00
										 |  |  | # Rules | 
					
						
							|  |  |  | "$XDG_CONFIG_HOME/bspwm/rules" | 
					
						
							| 
									
										
										
										
											2017-05-03 16:10:13 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | # start some services | 
					
						
							| 
									
										
										
										
											2020-12-09 00:34:57 +03:00
										 |  |  | services=( sxhkd dunst ssh-agent ufwd{,-private,-scn,-fikus} ) | 
					
						
							| 
									
										
										
										
											2017-05-03 16:10:13 +03:00
										 |  |  | for s in "${services[@]}"; do | 
					
						
							|  |  |  | 	if ! service "$s" status; then | 
					
						
							|  |  |  | 		service "$s" start | 
					
						
							|  |  |  | 	fi | 
					
						
							|  |  |  | done | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Always restart the panel | 
					
						
							|  |  |  | service moltenbar restart | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | nullexec browser & | 
					
						
							|  |  |  | nullexec telegram & | 
					
						
							|  |  |  | nullexec dropbox & | 
					
						
							| 
									
										
										
										
											2020-12-09 00:34:57 +03:00
										 |  |  | nullexec mumble & |