mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-11-04 14:31:16 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			570 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			570 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
# A general audio interface for LARBS.
 | 
						|
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
 | 
						|
 | 
						|
[ -z "$2" ] && num="2" || num="$2"
 | 
						|
 | 
						|
case "$1" in
 | 
						|
	u*) pulsemixer --change-volume +"$num" ;;
 | 
						|
	d*) pulsemixer --change-volume -"$num" ;;
 | 
						|
	m*) pulsemixer --toggle-mute ;;
 | 
						|
	*) cat << EOF
 | 
						|
lmc: cli music interface for pulse for those with divine intellect too
 | 
						|
grand to remember the pamixer commands.
 | 
						|
 | 
						|
Allowed options:
 | 
						|
  up NUM	Increase volume (2 secs default)
 | 
						|
  down NUM	Decrease volume (2 secs default)
 | 
						|
  mute		Toggle mute
 | 
						|
  all else	Print this message
 | 
						|
 | 
						|
EOF
 | 
						|
esac
 |