mirror of https://github.com/tiyn/dotfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
570 B
24 lines
570 B
5 years ago
|
#!/bin/sh
|
||
5 years ago
|
|
||
5 years ago
|
# A general audio interface for LARBS.
|
||
5 years ago
|
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
||
5 years ago
|
|
||
|
[ -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
|
||
5 years ago
|
lmc: cli music interface for pulse for those with divine intellect too
|
||
|
grand to remember the pamixer commands.
|
||
5 years ago
|
|
||
|
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
|