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
gomuks
fractal
tuba # mastodon client
# games
prismlauncher

View file

@ -1,7 +1,6 @@
{ pkgs, ... }:
{
systemd.user = {
services.ianny = {
systemd.user.services.ianny = {
Unit = {
Description = "Ianny break timer";
After = [ "graphical-session-pre.target" ];
@ -12,5 +11,4 @@
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
};
}

View file

@ -34,6 +34,18 @@
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 = {
Install.WantedBy = [ "graphical-session.target" ];
Service = {