feat(waybar): add right click action for pulseaudio module to run pavucontrol

This commit is contained in:
toast 2025-10-12 22:40:07 +09:00
parent aa93f3eeda
commit 31ab76fb33

View file

@ -1,3 +1,5 @@
{ pkgs, ... }:
{ {
programs.waybar = { programs.waybar = {
enable = true; enable = true;
@ -52,6 +54,7 @@
format-source = "{volume}% "; format-source = "{volume}% ";
format-source-muted = ""; format-source-muted = "";
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
on-click-right = "${pkgs.pavucontrol}/bin/pavucontrol";
}; };
systemd-failed-units = { systemd-failed-units = {