Files
dotfiles/.config/hypr/scripts/dunst/volume-down.sh

9 lines
272 B
Bash
Executable File

#!/bin/bash
msgId="3378455"
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Eo [0-9]+% | head -1)
notify-send -i $HOME/.config/hypr/scripts/dunst/icons/volume-down.svg -a "changevolume" -u low -r "$msgId" \
-h int:value:"$volume" "Громкость: $volume%"