From f31e0f31c294743a5b235286b83cf0963a64fd5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Fri, 3 Jan 2020 12:01:46 +0100 Subject: [PATCH] fix(xautolock): dont suspend ever --- configs/xautolock.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/xautolock.nix b/configs/xautolock.nix index d808c29..6a80fe5 100644 --- a/configs/xautolock.nix +++ b/configs/xautolock.nix @@ -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;