This commit is contained in:
Odweta
2026-01-11 21:15:00 +01:00
parent 1a0d960804
commit fc3f594206
+1 -2
View File
@@ -13,13 +13,12 @@
timeout = 0
'';
};
systemd.services.hyprlock-pre-suspend = {
systemd.user.services.hyprlock-pre-suspend = {
description = "Lock screen before suspend";
wants = [ "sleep.target" ];
before = [ "sleep.target" ];
serviceConfig = {
Type = "oneshot";
User = "odweta"; # run as your user
Environment = "XDG_RUNTIME_DIR=/run/user/%U WAYLAND_DISPLAY=wayland-1 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/bus";
ExecStart = "${pkgs.hyprlock}/bin/hyprlock -c /etc/hypr/hyprlock.conf";
};