mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 05:13:10 +01:00
wayland: add swayidle inhibit
This commit is contained in:
parent
fcdc32c2f0
commit
1b76968b00
|
@ -33,6 +33,7 @@
|
|||
gajim
|
||||
gomuks
|
||||
fractal
|
||||
tuba # mastodon client
|
||||
|
||||
# games
|
||||
prismlauncher
|
||||
|
|
|
@ -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" ]; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue