From f6a84f7c84ed29b1764c98f856844c698d141faa Mon Sep 17 00:00:00 2001 From: Ayush Dumasia Date: Sat, 7 Jun 2025 14:55:08 +0530 Subject: [PATCH] =?UTF-8?q?refactor=20=F0=9F=94=A8:=20Waybar's=20volume=20?= =?UTF-8?q?module=20(Back=20to=20Default)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- waybar/config.jsonc | 73 ++++++++++++++++++++++++++------------------- waybar/style.css | 4 +-- 2 files changed, 44 insertions(+), 33 deletions(-) diff --git a/waybar/config.jsonc b/waybar/config.jsonc index 964458e..95eff8a 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -14,7 +14,7 @@ // "custom/update" , "custom/transparency", "custom/wallpaper", - "pulseaudio", + "wireplumber", "backlight", "network", // "bluetooth", @@ -184,36 +184,47 @@ "tooltip-format": "{capacity}%, about {time} left", "format-icons": [" ", " ", " ", " "] }, - "pulseaudio": { - "format": "{icon}", - "format-muted": "\uf6a9", - "format-icons": { - "headphone": "\uf025", - // "default": ["\uf028"] - // "default": [ - // "▁", // 0–16% - // "▂▁", // 17–33% - // "▃▂▁", // 34–50% - // "▄▃▂▁", // 51–66% - // "▅▄▃▂▁", // 67–83% - // "▆▅▄▃▂▁" // 84–100% - // ] - "default": [ - "░░░░░░░░░░", - "▓░░░░░░░░░", - "▓▓░░░░░░░░", - "▓▓▓░░░░░░░", - "▓▓▓▓░░░░░░", - "▓▓▓▓▓░░░░░", - "▓▓▓▓▓▓░░░░", - "▓▓▓▓▓▓▓░░░", - "▓▓▓▓▓▓▓▓░░", - "▓▓▓▓▓▓▓▓▓░", - "▓▓▓▓▓▓▓▓▓▓" - ] - }, - "tooltip-format": "{volume}% {desc}", - "on-click": "pamixer -t" + // "pulseaudio": { + // "format": "{icon}", + // "format-muted": "\uf6a9", + // "format-icons": { + // "headphone": "\uf025", + // "default": ["\uf028"] + // // "default": [ + // // "▁", // 0–16% + // // "▂▁", // 17–33% + // // "▃▂▁", // 34–50% + // // "▄▃▂▁", // 51–66% + // // "▅▄▃▂▁", // 67–83% + // // "▆▅▄▃▂▁" // 84–100% + // // ] + // // "default": [ + // // "░░░░░░░░░░", + // // "▓░░░░░░░░░", + // // "▓▓░░░░░░░░", + // // "▓▓▓░░░░░░░", + // // "▓▓▓▓░░░░░░", + // // "▓▓▓▓▓░░░░░", + // // "▓▓▓▓▓▓░░░░", + // // "▓▓▓▓▓▓▓░░░", + // // "▓▓▓▓▓▓▓▓░░", + // // "▓▓▓▓▓▓▓▓▓░", + // // "▓▓▓▓▓▓▓▓▓▓" + // // ] + // }, + // "tooltip-format": "{volume}% {desc}", + // "on-click": "pamixer -t" + // }, + "wireplumber": { + "max-volume": 200, + "scroll-step": 5, + "format": "{icon}", + "format-bluetooth": "{icon}", + "format-icons": [" ", " ", " "], + "format-muted": " ", + "on-click-middle": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", + "on-click": "pamixer -t", + "tooltip-format": "{volume}% | {desc}" }, "bluetooth": { "format": "{icon}", diff --git a/waybar/style.css b/waybar/style.css index ee68212..4f75820 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -79,7 +79,7 @@ tooltip, menu, #workspaces, #clock, -#pulseaudio, +#wireplumber, #backlight, #bluetooth, #network, @@ -178,7 +178,7 @@ menu, border-radius: 6px; } -#pulseaudio, +#wireplumber, #backlight { padding: 0 8px; margin: 0 1px;