2 # Sends a notification with the time, battery level, and volume
4 if [[ ${1} == "status" || -z ${1} ]]; then
5 dunstify -h string:x-canonical-private-synchronous:status \
6 "$(date "+%A %Y-%m-%d, %r")"\
7 "$(acpi | tail -c +12)\n$(amixer sget Master | tail -n 1 \
11 elif [[ ${1} == "audio" ]]; then
13 [[ $(amixer sget Master | tail -n 1 | grep "off") ]] &&
14 pactl set-sink-mute 0 toggle
15 pactl set-sink-volume 0 ${2}%
17 pactl set-sink-mute 0 toggle
21 [[ $(amixer sget Master | tail -n 1 | grep "off") ]] && mutes="Muted"
23 dunstify -h string:x-canonical-private-synchronous:audio \
25 -h int:value:"$(amixer sget Master | tail -n 1 | cut -d '[' -f 2 | \
29 elif [[ ${1} == "brightness" ]]; then
30 brightnessctl set ${2}
31 dunstify -h string:x-canonical-private-synchronous:brightness \
32 "Brightness" "$(brightnessctl | grep % | tail -c +22)" \
33 -h int:value:"$(brightnessctl | grep % | cut -d '(' -f 2 | head -c +3)" \