1
1
Fork 0

niri: add sway-audio-idle-inhibit

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-12-23 22:54:53 -05:00
parent 531a09176f
commit aa6fac79c6
Signed by: myned
GPG key ID: C7224454F7881A34

View file

@ -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