niri: add sway-audio-idle-inhibit
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
531a09176f
commit
aa6fac79c6
1 changed files with 6 additions and 0 deletions
|
@ -1,10 +1,12 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
niri = "${config.programs.niri.package}/bin/niri";
|
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;
|
cfg = config.custom.desktops.niri.misc;
|
||||||
in {
|
in {
|
||||||
|
@ -17,6 +19,10 @@ in {
|
||||||
programs.niri.settings = {
|
programs.niri.settings = {
|
||||||
# https://github.com/YaLTeR/niri/wiki/Configuration:-Miscellaneous
|
# 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
|
# HACK: Inherit home-manager environment variables in lieu of upstream fix
|
||||||
# https://github.com/nix-community/home-manager/issues/2659
|
# https://github.com/nix-community/home-manager/issues/2659
|
||||||
# https://github.com/YaLTeR/niri/wiki/Configuration:-Miscellaneous#environment
|
# https://github.com/YaLTeR/niri/wiki/Configuration:-Miscellaneous#environment
|
||||||
|
|
Loading…
Reference in a new issue