| 
									
										
										
										
											2022-01-12 11:43:46 +03:00
										 |  |  | #!/usr/bin/env ssm | 
					
						
							| 
									
										
										
										
											2018-08-07 22:21:49 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | #service_respawn='true' | 
					
						
							|  |  |  | service_command='/home/fbt/bin/moltenbar' | 
					
						
							| 
									
										
										
										
											2022-01-12 11:43:46 +03:00
										 |  |  | service_cgroup_cleanup = 1 | 
					
						
							| 
									
										
										
										
											2018-08-07 22:21:49 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | post_start() { | 
					
						
							|  |  |  | 	# Die if the thing didn't start | 
					
						
							|  |  |  | 	timer 5 nullexec xdo id -a moltenbar || return 1 | 
					
						
							|  |  |  | 	 | 
					
						
							|  |  |  | 	# Set the layer on which lemonbar resides | 
					
						
							|  |  |  | 	xdo above -t $( xdo id -n root ) $( xdo id -a moltenbar ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	# Set the top badding for bspwm | 
					
						
							|  |  |  | 	bspc config top_padding $(( 14 + 9 )) &>/tmp/debug.log | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | pre_stop() { | 
					
						
							|  |  |  | 	bspc config top_padding 0 | 
					
						
							|  |  |  | } |