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
Showing only changes of commit 27a70d70eb - Show all commits

View File

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

View File

@@ -21,11 +21,26 @@
]; ];
modules-right = [ modules-right = [
"pulseaudio"
"cpu" "cpu"
"tray" "tray"
"clock" "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 = { mpris = {
player = "spotify"; player = "spotify";
format = "{player_icon} {artist} - {title}"; format = "{player_icon} {artist} - {title}";
@@ -35,7 +50,7 @@
}; };
cpu = { cpu = {
format = "{usage}% "; format = " {usage}%";
tooltip = false; tooltip = false;
}; };