Browse Source

updated pulseaudio waybar module

pull/81/head
JaKooLit 2 years ago
parent
commit
4b2e29a0e9
  1. 4
      config/hypr/scripts/Volume.sh
  2. 2
      config/waybar/modules

4
config/hypr/scripts/Volume.sh

@ -29,9 +29,9 @@ get_icon() {
# Notify
notify_user() {
if [[ "$(get_volume)" == "Muted" ]]; then
dunstify -h string:x-dunst-stack-tag:volume_notif -u low -i "$(get_icon)" "Volume : Muted"
dunstify -h string:x-dunst-stack-tag:volume_notif -u low -i "$(get_icon)" "Volume: Muted"
else
dunstify -h int:value:"$(get_volume | sed 's/%//')" -h string:x-dunst-stack-tag:volume_notif -u low -i "$(get_icon)" "Volume : $(get_volume)"
dunstify -h int:value:"$(get_volume | sed 's/%//')" -h string:x-dunst-stack-tag:volume_notif -u low -i "$(get_icon)" "Volume: $(get_volume)"
fi
}

2
config/waybar/modules

@ -402,7 +402,7 @@
},
"pulseaudio": {
"format": "{icon}",
"format": "{icon} {volume}%",
"format-bluetooth": "{icon} 󰂰 {volume}%",
"format-muted": "󰖁",
"format-icons": {

Loading…
Cancel
Save