Add volume icon to waybar

This commit is contained in:
2026-01-29 21:09:49 +01:00
parent 4e4590786a
commit 27a70d70eb
2 changed files with 17 additions and 2 deletions

View File

@@ -21,11 +21,26 @@
];
modules-right = [
"pulseaudio"
"cpu"
"tray"
"clock"
];
pulseaudio = {
format = "{icon} {volume}%";
format-muted = "󰝟 muted";
tooltip = false;
scroll-step = 5;
format-icons = {
default = [ "󰕿" "󰖀" "󰕾" ];
};
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
};
mpris = {
player = "spotify";
format = "{player_icon} {artist} - {title}";
@@ -35,7 +50,7 @@
};
cpu = {
format = "{usage}% ";
format = " {usage}%";
tooltip = false;
};