10 lines
		
	
	
		
			180 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			180 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/dash
 | 
						|
 | 
						|
if [ -z "$1" ] || [ -n "$(echo $1|sed 's/[0-9]//g')" ]; then
 | 
						|
	echo "Usage: $0 <volume 0-100>"
 | 
						|
	exit
 | 
						|
fi
 | 
						|
 | 
						|
pacmd set-sink-volume 0 $(($1 * 65536/100)) >/dev/null
 | 
						|
exit $?
 |