Add quick action
This commit is contained in:
		
							parent
							
								
									ad58ab9bdd
								
							
						
					
					
						commit
						1f6d175a86
					
				
					 2 changed files with 67 additions and 94 deletions
				
			
		
							
								
								
									
										10
									
								
								ts-control
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								ts-control
									
										
									
									
									
								
							|  | @ -1,6 +1,7 @@ | |||
| #!/usr/bin/env sh | ||||
| 
 | ||||
| actions="move | ||||
| actions="quick | ||||
| move | ||||
| fetch-client | ||||
| fetch-channel | ||||
| away | ||||
|  | @ -37,6 +38,13 @@ _ts_control_fetch() { | |||
| } | ||||
| 
 | ||||
| case $action in | ||||
| 	"quick") | ||||
| 		action=$($DMENU < "$XDG_CONFIG_HOME/ts-control-quick") | ||||
| 		if [ -z "$action" ]; then | ||||
| 			exit 1 | ||||
| 		fi | ||||
| 		eval "teamspeak-query-lib $action" | ||||
| 		;; | ||||
| 	"move") | ||||
| 		_ts_control_move_self | ||||
| 		;; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue