mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
fix(xautolock): dont suspend ever
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
suspendIfBored = false;
|
||||
|
||||
xlockModes = lib.concatStringsSep "\\n" [
|
||||
# "braid"
|
||||
"galaxy"
|
||||
@@ -27,7 +29,7 @@ in
|
||||
{
|
||||
services.xserver.xautolock = rec {
|
||||
enable = true;
|
||||
killer = "${pkgs.systemd}/bin/systemctl suspend";
|
||||
killer = if suspendIfBored then "${pkgs.systemd}/bin/systemctl suspend" else null;
|
||||
locker = "${my-xlock}/bin/xlock";
|
||||
nowlocker = locker;
|
||||
enableNotifier = true;
|
||||
|
||||
Reference in New Issue
Block a user