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
|
gajim
|
||||||
gomuks
|
gomuks
|
||||||
fractal
|
fractal
|
||||||
|
tuba # mastodon client
|
||||||
|
|
||||||
# games
|
# games
|
||||||
prismlauncher
|
prismlauncher
|
||||||
|
|
|
@ -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" ]; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue