Fix space/tab and add "not away" in ts-control
This commit is contained in:
		
							parent
							
								
									13abafae9d
								
							
						
					
					
						commit
						970c1ee2c2
					
				
					 1 changed files with 24 additions and 20 deletions
				
			
		|  | @ -1,6 +1,6 @@ | ||||||
| #!/usr/bin/env sh | #!/usr/bin/env sh | ||||||
| 
 | 
 | ||||||
| action=$(printf "move\nfetch\naway\nback" | $DMENU) | action=$(printf "move\nfetch\naway\nnot away\nback" | $DMENU) | ||||||
| 
 | 
 | ||||||
| ts_control_move_self() { | ts_control_move_self() { | ||||||
| 	channel=$(teamspeak-query-lib channels | $DMENU) | 	channel=$(teamspeak-query-lib channels | $DMENU) | ||||||
|  | @ -22,6 +22,10 @@ case $action in | ||||||
| 		fi | 		fi | ||||||
| 		teamspeak-query-lib fetch --strict-client "$client" | 		teamspeak-query-lib fetch --strict-client "$client" | ||||||
| 		;; | 		;; | ||||||
|  | 	"not away") | ||||||
|  | 		teamspeak-query-lib move "Not Away From Keyboard" | ||||||
|  | 		teamspeak-query-lib update --microphone=false --speakers=false | ||||||
|  | 		;; | ||||||
| 	"away") | 	"away") | ||||||
| 		message=$(printf "\n" | $DMENU -p "message") | 		message=$(printf "\n" | $DMENU -p "message") | ||||||
| 		if [ -z "$message" ]; then | 		if [ -z "$message" ]; then | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue