wayland: add swayidle inhibit

This commit is contained in:
Rouven Seifert 2024-01-04 00:11:01 +01:00
parent fcdc32c2f0
commit 1b76968b00
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 22 additions and 11 deletions

View file

@ -33,6 +33,7 @@
gajim gajim
gomuks gomuks
fractal fractal
tuba # mastodon client
# games # games
prismlauncher prismlauncher

View file

@ -1,16 +1,14 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
systemd.user = { systemd.user.services.ianny = {
services.ianny = { Unit = {
Unit = { Description = "Ianny break timer";
Description = "Ianny break timer"; After = [ "graphical-session-pre.target" ];
After = [ "graphical-session-pre.target" ]; PartOf = [ "graphical-session.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.ianny}/bin/ianny";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
}; };
Service = {
ExecStart = "${pkgs.ianny}/bin/ianny";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
}; };
} }

View file

@ -34,6 +34,18 @@
systemdTarget = "graphical-session.target"; systemdTarget = "graphical-session.target";
}; };
systemd.user.services.swayidle-inhibit = {
Unit = {
Description = "Service preventing swayidle from sleeping while any application is outputting or receiving audio";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${lib.getExe pkgs.sway-audio-idle-inhibit}";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
systemd.user.services.swaync = { systemd.user.services.swaync = {
Install.WantedBy = [ "graphical-session.target" ]; Install.WantedBy = [ "graphical-session.target" ];
Service = { Service = {