implemented toggle option (to be invoked from dwm)
This commit is contained in:
		
							parent
							
								
									414f84070f
								
							
						
					
					
						commit
						53f31f060b
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -16,7 +16,9 @@ close() {
 | 
				
			||||||
	pkill "$KEYBOARD"
 | 
						pkill "$KEYBOARD"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "$1" = "close" ]; then
 | 
					if [ "$1" = "toggle" ]; then
 | 
				
			||||||
 | 
						close || open
 | 
				
			||||||
 | 
					elif [ "$1" = "close" ]; then
 | 
				
			||||||
	close
 | 
						close
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
	open
 | 
						open
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue