framework: Enable hibernation and lock before doing it

This commit is contained in:
Natsu Kagami 2024-02-02 13:18:38 +01:00
parent cec9dd4d85
commit 2888c0a300
Signed by: nki
GPG key ID: 55A032EB38B49ADB
3 changed files with 8 additions and 1 deletions

View file

@ -397,6 +397,10 @@ in
# Lock after 15 minutes of idle
{ timeout = 15 * 60; command = cfg.lockCmd; }
];
events = [
{ event = "lock"; command = cfg.lockCmd; }
{ event = "before-sleep"; command = cfg.lockCmd; }
];
};
config.programs.waybar =