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.
31 lines
920 B
31 lines
920 B
5 years ago
|
#!/bin/sh
|
||
5 years ago
|
|
||
5 years ago
|
# A general audio interface for LARBS.
|
||
1 year ago
|
# Based on a script by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
||
5 years ago
|
|
||
1 year ago
|
[ -z "$2" ] && num="5" || num="$2"
|
||
5 years ago
|
|
||
|
case "$1" in
|
||
1 year ago
|
up) wpctl set-volume @DEFAULT_AUDIO_SINK@ "$num"%+ ;;
|
||
|
down) wpctl set-volume @DEFAULT_AUDIO_SINK@ "$num"%- ;;
|
||
|
deaf) wpctl set-mute @DEFAULT_SINK@ 1;;
|
||
|
undeaf) wpctl set-mute @DEFAULT_SINK@ 0;;
|
||
|
mute) wpctl set-mute @DEFAULT_AUDIO_SOURCE@ 1;;
|
||
|
unmute) wpctl set-mute @DEFAULT_AUDIO_SOURCE@ 0;;
|
||
5 years ago
|
*) 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:
|
||
1 year ago
|
up NUM Increase volume (5% default)
|
||
|
down NUM Decrease volume (5% default)
|
||
|
mute mute microphone
|
||
|
unmute unmute microphone
|
||
|
deaf deaf sound
|
||
|
undeaf undeaf sound
|
||
5 years ago
|
all else Print this message
|
||
|
|
||
|
EOF
|
||
|
esac
|
||
1 year ago
|
pkill -RTMIN+4 $STATUSBAR
|