2 # Sends a notification with the time, battery level, and volume
5 if [ "$1" = "status" ]; then
6 herbe "$(date "+%A %Y-%m-%d, %r")" \
7 "$(acpi | tail -c +12)" \
8 "$(amixer sget Master | tail -n 1 | cut -d " " -f 7-)"
9 elif [ "$1" = "audio" ]; then
11 amixer sget Master | tail -n 1 | grep "off" && \
12 pactl set-sink-mute 0 toggle
13 pactl set-sink-volume 0 "$2%"
15 pactl set-sink-mute 0 toggle
18 herbe "Volume" "$(amixer sget Master | tail -n 1 | cut -d " " -f 7-)"
19 elif [ "$1" = "brightness" ]; then
20 brightnessctl set "$2"
21 herbe "Brightness" "$(brightnessctl | grep % | tail -c +22)"
23 echo "setter: unknown subcommand"