Add event listener with JSON output (WIP) Add notifier on movement events Refactor Parameter and ParameterList (still shit)
This commit is contained in:
		
							parent
							
								
									2c0a8ab616
								
							
						
					
					
						commit
						d8cdc2bb11
					
				
					 14 changed files with 338 additions and 186 deletions
				
			
		|  | @ -8,7 +8,8 @@ away | |||
| not away | ||||
| back | ||||
| message | ||||
| message-user" | ||||
| message-user | ||||
| events-move" | ||||
| 
 | ||||
| _ts_control_get_entity() { | ||||
| 	entity=$(_ts_control_single_or_dmenu "$(teamspeak-query-lib "$1s")" "$2") | ||||
|  | @ -97,4 +98,8 @@ case $action in | |||
| 		message=$(_ts_control_get_message "$3") | ||||
| 		teamspeak-query-lib message --strict-client --client "$user" "$message" | ||||
| 		;; | ||||
| 	"events-move") | ||||
| 		teamspeak-query-lib events NotifyClientMoved NotifyClientEnterView \ | ||||
| 			| jq -r --unbuffered '.client.client_nickname + " joined " + .channel.channel_name // "the server"' \ | ||||
| 			| xargs -I{} notify-send "TS3 movement" "{}" | ||||
| esac | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue