mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-14 21:03: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,16 +1,14 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
systemd.user = {
|
||||
services.ianny = {
|
||||
Unit = {
|
||||
Description = "Ianny break timer";
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.ianny}/bin/ianny";
|
||||
};
|
||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||
systemd.user.services.ianny = {
|
||||
Unit = {
|
||||
Description = "Ianny break timer";
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.ianny}/bin/ianny";
|
||||
};
|
||||
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