From aa6fac79c69807325b36833437aad6568cdc5187 Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 23 Dec 2024 22:54:53 -0500 Subject: [PATCH] niri: add sway-audio-idle-inhibit Signed-off-by: Myned --- options/custom/desktops/niri/misc.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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