From ceaf04e7b1ee25594f0e6db1761786e338159ae6 Mon Sep 17 00:00:00 2001 From: BluishHumility Date: Mon, 29 Jul 2024 21:40:16 -0400 Subject: [PATCH] =?UTF-8?q?feat(waybar):=20update=20pulseaudio=20module=20?= =?UTF-8?q?*=20Set=20`scroll-step`=20to=202=20and=20remove=20`on-scroll-up?= =?UTF-8?q?`/`on-scroll-down`=20action=20(which=20is=20doing=20the=20same?= =?UTF-8?q?=20thing)=20*=20Format=20as=20icon|volume=20instead=20of=20volu?= =?UTF-8?q?me|icon=20for=20consistency=20with=20other=20modules=20*=20Remo?= =?UTF-8?q?ve=20`format-source`=20settings=20since=20it=20seems=20to=20be?= =?UTF-8?q?=20set=20up=20inconsistently.=20This=20feature=20also=20behaves?= =?UTF-8?q?=20oddly=20by=20default=20(for=20example,=20it=20cannot=20have?= =?UTF-8?q?=20an=20on-click=20or=20scroll=20behavior=20independent=20from?= =?UTF-8?q?=20volume--kind=20of=20unintuitive).=20If=20a=20user=20wants=20?= =?UTF-8?q?to=20use=20this=20feature=20it=20will=20likely=20work=20better?= =?UTF-8?q?=20to=20break=20out=20source=20into=20a=20separate=20module=20l?= =?UTF-8?q?ike=20this:=20https://github.com/Alexays/Waybar/issues/925#issu?= =?UTF-8?q?ecomment-1377761376=20*=20Remove=20`format-bluetooth`=20setting?= =?UTF-8?q?s=20since=20it=20is=20not=20defining=20a=20different=20behavior?= =?UTF-8?q?=20after=20removing=20`format-source`=20*=20Replaced=20?= =?UTF-8?q?=EF=9A=A9,=20=EF=AA=80,=20=EF=9F=8A,=20and=20=EF=9F=8D=20icons?= =?UTF-8?q?=20since=20they=20are=20all=20depreciated/removed=20from=20Nerd?= =?UTF-8?q?=20Font=20icon=20set=20*=20Added=20additional=20icons=20to=20`d?= =?UTF-8?q?efault`=20to=20have=20different=20icons=20for=20low,=20medium,?= =?UTF-8?q?=20and=20high=20volume=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/waybar/config | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.config/waybar/config b/.config/waybar/config index 14b6e75..c7bf5bc 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -139,25 +139,19 @@ }, "pulseaudio": { - "scroll-step": 1, // %, can be a float - "format": "{volume}% {icon}", - "format-bluetooth": "{volume}% {icon}  {format_source}", - "format-bluetooth-muted": " {icon}  {format_source}", - "format-muted": "婢 {format_source}", - "format-source": "{volume}% ", - "format-source-muted": "", + "scroll-step": 2, + "format": "{icon} {volume}%", + "format-muted":"󰝟 muted", "format-icons": { - "headphone": "", - "hands-free": "וֹ", - "headset": "  ", + "headphones": "", + "handsfree": "", + "headset": "", "phone": "", "portable": "", "car": "", - "default": [""] + "default": ["󰕿", "󰖀", "󰕾"] }, - "on-click": "pavucontrol", - "on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +2%", - "on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -2%", + "on-click": "pavucontrol" }, // to use the weather module replace with your city or town