xss-lock: fix dimmer invocation

It should run in background.
This commit is contained in:
Vincent Bernat 2021-08-04 00:32:17 +02:00
parent b1ae3bd89d
commit 8d70ce8106

View file

@ -22,7 +22,8 @@ case "$1" in
echo "notify: start (idle: $(xprintidle))" echo "notify: start (idle: $(xprintidle))"
trap 'echo notify: user activity; kill %% 2> /dev/null; exit 0' HUP # user activity trap 'echo notify: user activity; kill %% 2> /dev/null; exit 0' HUP # user activity
trap 'echo notify: locker started; kill %% 2> /dev/null; exit 0' TERM # locker started trap 'echo notify: locker started; kill %% 2> /dev/null; exit 0' TERM # locker started
~/.config/i3/bin/dimmer --delay $notify ~/.config/i3/bin/dimmer --delay $notify &
wait
echo "notify: end" echo "notify: end"
;; ;;
lock) lock)