- mutes="Unmuted"
- [[ $(amixer sget Master | tail -n 1 | grep "off") ]] && mutes="Muted"
-
- dunstify -h string:x-canonical-private-synchronous:audio \
- "Volume" "${mutes}" \
- -h int:value:"$(amixer sget Master | tail -n 1 | cut -d '[' -f 2 | \
- head -c +2)" \
- -t 1000
-
-elif [[ ${1} == "brightness" ]]; then
- brightnessctl set ${2}
- dunstify -h string:x-canonical-private-synchronous:brightness \
- "Brightness" "$(brightnessctl | grep % | tail -c +22)" \
- -h int:value:"$(brightnessctl | grep % | cut -d '(' -f 2 | head -c +3)" \
- -t 1000
+ herbe "Volume" "$(amixer sget Master | tail -n 1 | cut -d " " -f 7-)"
+elif [ "$1" = "brightness" ]; then
+ brightnessctl set "$2"
+ herbe "Brightness" "$(brightnessctl | grep % | tail -c +22)"
+else
+ echo "setter: unknown subcommand"
+ exit 1