home/swaylock/brightness: use builtin -s -r

This commit is contained in:
Guanran Wang 2024-02-17 23:10:08 +08:00
parent c1de68cfd4
commit 8276030be2
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -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;