lock
This commit is contained in:
+5
-3
@@ -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" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user