refactor 🔨: Waybar's volume module (Back to Default)

This commit is contained in:
Ayush Dumasia 2025-06-07 14:55:08 +05:30
parent 259a349f41
commit f6a84f7c84
2 changed files with 44 additions and 33 deletions

View file

@ -14,7 +14,7 @@
// "custom/update" , // "custom/update" ,
"custom/transparency", "custom/transparency",
"custom/wallpaper", "custom/wallpaper",
"pulseaudio", "wireplumber",
"backlight", "backlight",
"network", "network",
// "bluetooth", // "bluetooth",
@ -184,36 +184,47 @@
"tooltip-format": "{capacity}%, about {time} left", "tooltip-format": "{capacity}%, about {time} left",
"format-icons": [" ", " ", " ", " "] "format-icons": [" ", " ", " ", " "]
}, },
"pulseaudio": { // "pulseaudio": {
"format": "<span font='Font Awesome 5 Free'>{icon}</span>", // "format": "<span font='Font Awesome 5 Free'>{icon}</span>",
"format-muted": "<span font='Font Awesome 5 Free'>\uf6a9</span>", // "format-muted": "<span font='Font Awesome 5 Free'>\uf6a9</span>",
"format-icons": { // "format-icons": {
"headphone": "\uf025", // "headphone": "\uf025",
// "default": ["\uf028"] // "default": ["\uf028"]
// "default": [ // // "default": [
// "▁", // 016% // // "▁", // 016%
// "▂▁", // 1733% // // "▂▁", // 1733%
// "▃▂▁", // 3450% // // "▃▂▁", // 3450%
// "▄▃▂▁", // 5166% // // "▄▃▂▁", // 5166%
// "▅▄▃▂▁", // 6783% // // "▅▄▃▂▁", // 6783%
// "▆▅▄▃▂▁" // 84100% // // "▆▅▄▃▂▁" // 84100%
// ] // // ]
"default": [ // // "default": [
"░░░░░░░░░░", // // "░░░░░░░░░░",
"▓░░░░░░░░░", // // "▓░░░░░░░░░",
"▓▓░░░░░░░░", // // "▓▓░░░░░░░░",
"▓▓▓░░░░░░░", // // "▓▓▓░░░░░░░",
"▓▓▓▓░░░░░░", // // "▓▓▓▓░░░░░░",
"▓▓▓▓▓░░░░░", // // "▓▓▓▓▓░░░░░",
"▓▓▓▓▓▓░░░░", // // "▓▓▓▓▓▓░░░░",
"▓▓▓▓▓▓▓░░░", // // "▓▓▓▓▓▓▓░░░",
"▓▓▓▓▓▓▓▓░░", // // "▓▓▓▓▓▓▓▓░░",
"▓▓▓▓▓▓▓▓▓░", // // "▓▓▓▓▓▓▓▓▓░",
"▓▓▓▓▓▓▓▓▓▓" // // "▓▓▓▓▓▓▓▓▓▓"
] // // ]
}, // },
"tooltip-format": "{volume}% {desc}", // "tooltip-format": "{volume}% {desc}",
"on-click": "pamixer -t" // "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": { "bluetooth": {
"format": "{icon}", "format": "{icon}",

View file

@ -79,7 +79,7 @@ tooltip,
menu, menu,
#workspaces, #workspaces,
#clock, #clock,
#pulseaudio, #wireplumber,
#backlight, #backlight,
#bluetooth, #bluetooth,
#network, #network,
@ -178,7 +178,7 @@ menu,
border-radius: 6px; border-radius: 6px;
} }
#pulseaudio, #wireplumber,
#backlight { #backlight {
padding: 0 8px; padding: 0 8px;
margin: 0 1px; margin: 0 1px;