From 8276030be2ccc34108f7e67e04d9d88f5b010db6 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Sat, 17 Feb 2024 23:10:08 +0800 Subject: [PATCH] home/swaylock/brightness: use builtin -s -r --- home/applications/swayidle/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/applications/swayidle/default.nix b/home/applications/swayidle/default.nix index d8176e3..cdd83e8 100644 --- a/home/applications/swayidle/default.nix +++ b/home/applications/swayidle/default.nix @@ -16,8 +16,8 @@ timeouts = [ { timeout = 60 * 9; - command = "${brightness} set 75%-"; - resumeCommand = "${brightness} set 75%+"; + command = "${brightness} -s set 20%"; + resumeCommand = "${brightness} -r"; } # dim screen { timeout = 60 * 10;