feat(waybar): update pulseaudio module

* Set `scroll-step` to 2 and remove `on-scroll-up`/`on-scroll-down` action (which is doing the same thing)
* Format as icon|volume instead of volume|icon for consistency with other modules
* Remove `format-source` settings since it seems to be set up inconsistently. This feature also behaves oddly by default (for example, it cannot have an on-click or scroll behavior independent from volume--kind of unintuitive). If a user wants to use this feature it will likely work better to break out source into a separate module like this: https://github.com/Alexays/Waybar/issues/925#issuecomment-1377761376
* Remove `format-bluetooth` settings since it is not defining a different behavior after removing `format-source`
* Replaced , 婢, , and  icons since they are all depreciated/removed from Nerd Font icon set
* Added additional icons to `default` to have different icons for low, medium, and high volume settings
This commit is contained in:
BluishHumility
2024-07-29 21:40:16 -04:00
parent 6ecb22d97a
commit ceaf04e7b1

View File

@@ -139,25 +139,19 @@
}, },
"pulseaudio": { "pulseaudio": {
"scroll-step": 1, // %, can be a float "scroll-step": 2,
"format": "{volume}% {icon}", "format": "{icon} {volume}%",
"format-bluetooth": "{volume}% {icon}  {format_source}", "format-muted":"󰝟 muted",
"format-bluetooth-muted": " {icon}  {format_source}",
"format-muted": "婢 {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": { "format-icons": {
"headphone": "", "headphones": "",
"hands-free": "", "handsfree": "",
"headset": "", "headset": "",
"phone": "", "phone": "",
"portable": "", "portable": "",
"car": "", "car": "",
"default": [""] "default": ["󰕿", "󰖀", "󰕾"]
}, },
"on-click": "pavucontrol", "on-click": "pavucontrol"
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +2%",
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -2%",
}, },
// to use the weather module replace <your_location> with your city or town // to use the weather module replace <your_location> with your city or town