Refactor ts-control with bashly
This commit is contained in:
		
							parent
							
								
									93ebbbd5d2
								
							
						
					
					
						commit
						7694bf365c
					
				
					 21 changed files with 217 additions and 175 deletions
				
			
		
							
								
								
									
										20
									
								
								control_src/ask_command.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								control_src/ask_command.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| actions=( | ||||
|   "quick" | ||||
|   "move" | ||||
|   "fetch-client" | ||||
|   "fetch-channel" | ||||
|   "migrate" | ||||
|   "away" | ||||
|   "not-away" | ||||
|   "back" | ||||
|   "message" | ||||
|   "message-client" | ||||
|   "events" | ||||
|   "events-ntfy" | ||||
| ) | ||||
| 
 | ||||
| action=$(echo "${actions[@]}" | tr ' ' '\n' | $DMENU) | ||||
| 
 | ||||
| if [ -n "$action" ]; then | ||||
|   $0 "$action" | ||||
| fi | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue