nwg-panel: enable per-app volume controls

This commit is contained in:
2024-06-15 03:59:36 +00:00
parent 3c2347faba
commit a78b840215
3 changed files with 12 additions and 0 deletions

View File

@@ -99,6 +99,7 @@
./obsidian.nix ./obsidian.nix
./offlineimap.nix ./offlineimap.nix
./open-in-mpv.nix ./open-in-mpv.nix
./pactl.nix
./pipewire.nix ./pipewire.nix
./planify.nix ./planify.nix
./portfolio-filemanager.nix ./portfolio-filemanager.nix

View File

@@ -84,6 +84,10 @@ in
strictDeps = true; strictDeps = true;
}); });
suggestedPrograms = [
"pactl" # pactl required by `per-app-volume` component.
];
# fs.".config/nwg-panel/config".symlink.target = ./config; # fs.".config/nwg-panel/config".symlink.target = ./config;
# fs.".config/nwg-panel/style.css".symlink.target = ./style.css; # fs.".config/nwg-panel/style.css".symlink.target = ./style.css;
fs.".config/nwg-panel/config".symlink.target = pkgs.substituteAll { fs.".config/nwg-panel/config".symlink.target = pkgs.substituteAll {
@@ -99,6 +103,7 @@ in
"brightness" "brightness"
] ++ [ ] ++ [
"volume" "volume"
"per-app-volume"
] ++ lib.optionals cfg.config.battery [ ] ++ lib.optionals cfg.config.battery [
"battery" "battery"
] ]

View File

@@ -0,0 +1,6 @@
{ pkgs, ... }:
{
sane.programs.pactl = {
packageUnwrapped = pkgs.linkIntoOwnPackage pkgs.pulseaudio "bin/pactl";
};
}