diff --git a/options/custom/desktops/niri/misc.nix b/options/custom/desktops/niri/misc.nix index fded774..914e45d 100644 --- a/options/custom/desktops/niri/misc.nix +++ b/options/custom/desktops/niri/misc.nix @@ -1,10 +1,12 @@ { config, lib, + pkgs, ... }: with lib; let niri = "${config.programs.niri.package}/bin/niri"; + sway-audio-idle-inhibit = "${pkgs.sway-audio-idle-inhibit}/bin/sway-audio-idle-inhibit"; cfg = config.custom.desktops.niri.misc; in { @@ -17,6 +19,10 @@ in { programs.niri.settings = { # https://github.com/YaLTeR/niri/wiki/Configuration:-Miscellaneous + spawn-at-startup = [ + {command = [sway-audio-idle-inhibit];} # Inhibit while audio is playing + ]; + # HACK: Inherit home-manager environment variables in lieu of upstream fix # https://github.com/nix-community/home-manager/issues/2659 # https://github.com/YaLTeR/niri/wiki/Configuration:-Miscellaneous#environment