Skip to content

Commit

Permalink
Enable caffeine
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Jun 15, 2024
1 parent 9234245 commit c22b7b1
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions home/roles/desktop/locker/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,26 @@ in
playerctl
]);

services.xidlehook = {
enable = true;
detect-sleep = true;
not-when-audio = true;
not-when-fullscreen = true;
timers = [
{
delay = 600;
command = cfg.lockCmd;
}
{
delay = 300;
command = ''
systemctl suspend
'';
}
];
services = {
caffeine.enable = true;
xidlehook = {
enable = true;
detect-sleep = true;
not-when-audio = true;
not-when-fullscreen = true;
timers = [
{
delay = 600;
command = cfg.lockCmd;
}
{
delay = 300;
command = ''
systemctl suspend
'';
}
];
};
};

# Update random lock image on login
Expand Down

0 comments on commit c22b7b1

Please sign in to comment.