mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-10-30 20:11:16 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			486 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			486 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| if amixer get Capture | tail -2 | grep -q '\[on\]'; then
 | |
|     notify-send -u low 'Audio' 'Sound active\nMicrophone muted'
 | |
|     paplay ~/.local/bin/tools/audio/mic_muted.wav
 | |
|     amixer set Master unmute >/dev/null 2>&1
 | |
|     amixer set Capture nocap >/dev/null 2>&1
 | |
| else
 | |
|     notify-send -u low 'Audio' 'Sound active\nMicrophone active'
 | |
|     amixer set Master unmute >/dev/null 2>&1
 | |
|     amixer set Capture cap >/dev/null 2>&1
 | |
|     paplay ~/.local/bin/tools/audio/mic_activated.wav
 | |
| fi
 |