Regenerated
This commit is contained in:
+366
-359
File diff suppressed because it is too large
Load Diff
+10
-3
@@ -1653,13 +1653,20 @@ in
|
|||||||
#################################
|
#################################
|
||||||
systemd.user.services.hypridle = {
|
systemd.user.services.hypridle = {
|
||||||
description = "Hypridle (Hyprland idle daemon)";
|
description = "Hypridle (Hyprland idle daemon)";
|
||||||
after = [ "graphical-session.target" ];
|
after = [ "graphical-session.target" "hyprland-session.target" ];
|
||||||
|
partOf = [ "graphical-session.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
ExecStartPre = "${pkgs.bash}/bin/bash -c 'until [ -S /run/user/1000/wayland-1 ]; do sleep 0.5; done'";
|
||||||
ExecStart = "${pkgs.hypridle}/bin/hypridle";
|
ExecStart = "${pkgs.hypridle}/bin/hypridle";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
Environment = "HOME=/home/${username}";
|
RestartSec = "3s";
|
||||||
|
Environment = [
|
||||||
|
"HOME=/home/${username}"
|
||||||
|
"WAYLAND_DISPLAY=wayland-1"
|
||||||
|
"XDG_RUNTIME_DIR=/run/user/1000"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|||||||
@@ -31,12 +31,19 @@ in
|
|||||||
#################################
|
#################################
|
||||||
systemd.user.services.hypridle = {
|
systemd.user.services.hypridle = {
|
||||||
description = "Hypridle (Hyprland idle daemon)";
|
description = "Hypridle (Hyprland idle daemon)";
|
||||||
after = [ "graphical-session.target" ];
|
after = [ "graphical-session.target" "hyprland-session.target" ];
|
||||||
|
partOf = [ "graphical-session.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
ExecStartPre = "${pkgs.bash}/bin/bash -c 'until [ -S /run/user/1000/wayland-1 ]; do sleep 0.5; done'";
|
||||||
ExecStart = "${pkgs.hypridle}/bin/hypridle";
|
ExecStart = "${pkgs.hypridle}/bin/hypridle";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
Environment = "HOME=/home/${username}";
|
RestartSec = "3s";
|
||||||
|
Environment = [
|
||||||
|
"HOME=/home/${username}"
|
||||||
|
"WAYLAND_DISPLAY=wayland-1"
|
||||||
|
"XDG_RUNTIME_DIR=/run/user/1000"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user