Add volume icon to waybar #27

Merged
armel merged 1 commits from feature/volume-waybar into master 2026-01-29 21:10:21 +01:00
2 changed files with 17 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
theme = "agnoster";
};
initExtra = ''
initContent = ''
# Use kitty's ssh helper if running inside kitty
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
'';

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;
};