xss-dimmer: ensure dimmer don't block normal lock operations

This commit is contained in:
Vincent Bernat 2022-05-12 10:25:50 +02:00
parent 7b1c7c13d5
commit 1db8eace7f
2 changed files with 2 additions and 1 deletions

View file

@ -9,7 +9,7 @@ configure() {
xset dpms $((timeout * 3)) $((timeout * 32 / 10)) $((timeout * 34 / 10)) xset dpms $((timeout * 3)) $((timeout * 32 / 10)) $((timeout * 34 / 10))
} }
dimmer() { dimmer() {
systemctl --user $1 xss-dimmer@$notify.service systemctl --user --no-block $1 xss-dimmer@$notify.service
} }
case "$1" in case "$1" in

View file

@ -4,3 +4,4 @@ Description=Screen dimmer
[Service] [Service]
ExecStart=%h/.config/i3/bin/xss-dimmer --delay=%i \ ExecStart=%h/.config/i3/bin/xss-dimmer --delay=%i \
--background=%t/i3/current-wallpaper.png --background=%t/i3/current-wallpaper.png
TimeoutSec=1