This commit is contained in:
Odweta
2026-01-11 21:07:54 +01:00
parent 3b90c5f67e
commit d065e80890
+5 -3
View File
@@ -13,13 +13,15 @@
timeout = 0 timeout = 0
''; '';
}; };
systemd.services.hyprlock-pre-suspend = {
systemd.user.services.hyprlock-pre-suspend = {
description = "Lock screen before suspend"; description = "Lock screen before suspend";
wants = [ "sleep.target" ];
before = [ "sleep.target" ];
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
User = "odweta"; # run as your user
ExecStart = "${pkgs.hyprlock}/bin/hyprlock -c /etc/hypr/hyprlock.conf"; ExecStart = "${pkgs.hyprlock}/bin/hyprlock -c /etc/hypr/hyprlock.conf";
}; };
wantedBy = [ "sleep.target" ]; install.wantedBy = [ "sleep.target" ];
}; };
} }