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.
15 lines
332 B
15 lines
332 B
6 years ago
|
#!/usr/bin/env sh
|
||
|
|
||
|
# A simple script to adjust the volume
|
||
|
# Requires pulse and amixer
|
||
|
|
||
|
case "$1" in
|
||
|
"up")
|
||
|
amixer -q -D default sset Master 5%+ unmute
|
||
|
;;
|
||
|
"down")
|
||
|
amixer -q -D default sset Master 5%- unmute
|
||
|
esac
|
||
|
|
||
|
command -v notify-send && notify-send "Volume" "$(amixer -D default sget Master | grep -o '\[.*\%' | tr -d '[')"
|