| 
									
										
										
										
											2021-08-20 20:22:37 +01:00
										 |  |  | #!/usr/bin/env bash | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-21 17:57:24 +01:00
										 |  |  | visible=$CONFIG/polybar/.visible | 
					
						
							| 
									
										
										
										
											2021-08-20 20:22:37 +01:00
										 |  |  | barheight=27 | 
					
						
							| 
									
										
										
										
											2021-08-21 17:57:24 +01:00
										 |  |  | padding=0 | 
					
						
							| 
									
										
										
										
											2021-08-20 20:22:37 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | if [ -f $visible ]; then | 
					
						
							|  |  |  |     polybar-msg cmd hide | 
					
						
							|  |  |  |     rm $visible | 
					
						
							|  |  |  | else | 
					
						
							| 
									
										
										
										
											2021-08-21 17:57:24 +01:00
										 |  |  |     #bspc config top_padding ((padding+$barheight)) | 
					
						
							| 
									
										
										
										
											2021-08-20 20:22:37 +01:00
										 |  |  |     polybar-msg cmd show | 
					
						
							| 
									
										
										
										
											2021-08-21 17:57:24 +01:00
										 |  |  |     ((padding=padding+barheight)) | 
					
						
							| 
									
										
										
										
											2021-08-20 20:22:37 +01:00
										 |  |  |     touch $visible | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-21 17:57:24 +01:00
										 |  |  | bspc config top_padding $padding | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-20 20:22:37 +01:00
										 |  |  | 
 |