Regenerated
This commit is contained in:
+360
-361
File diff suppressed because it is too large
Load Diff
+4
-5
@@ -1653,20 +1653,19 @@ in
|
|||||||
#################################
|
#################################
|
||||||
systemd.user.services.hypridle = {
|
systemd.user.services.hypridle = {
|
||||||
description = "Hypridle (Hyprland idle daemon)";
|
description = "Hypridle (Hyprland idle daemon)";
|
||||||
after = [ "graphical-session.target" "hyprland-session.target" ];
|
after = [ "hyprland-session.target" ];
|
||||||
partOf = [ "graphical-session.target" ];
|
bindsTo = [ "hyprland-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";
|
||||||
RestartSec = "3s";
|
RestartSec = "5s";
|
||||||
Environment = [
|
Environment = [
|
||||||
"HOME=/home/${username}"
|
"HOME=/home/${username}"
|
||||||
"WAYLAND_DISPLAY=wayland-1"
|
"WAYLAND_DISPLAY=wayland-1"
|
||||||
"XDG_RUNTIME_DIR=/run/user/1000"
|
"XDG_RUNTIME_DIR=/run/user/1000"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "hyprland-session.target" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|||||||
@@ -31,19 +31,18 @@ in
|
|||||||
#################################
|
#################################
|
||||||
systemd.user.services.hypridle = {
|
systemd.user.services.hypridle = {
|
||||||
description = "Hypridle (Hyprland idle daemon)";
|
description = "Hypridle (Hyprland idle daemon)";
|
||||||
after = [ "graphical-session.target" "hyprland-session.target" ];
|
after = [ "hyprland-session.target" ];
|
||||||
partOf = [ "graphical-session.target" ];
|
bindsTo = [ "hyprland-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";
|
||||||
RestartSec = "3s";
|
RestartSec = "5s";
|
||||||
Environment = [
|
Environment = [
|
||||||
"HOME=/home/${username}"
|
"HOME=/home/${username}"
|
||||||
"WAYLAND_DISPLAY=wayland-1"
|
"WAYLAND_DISPLAY=wayland-1"
|
||||||
"XDG_RUNTIME_DIR=/run/user/1000"
|
"XDG_RUNTIME_DIR=/run/user/1000"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "hyprland-session.target" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user