xss-lock: use a dimmer service to start/stop dimmer

This way, we can lock the screen before stopping dimmer.
This commit is contained in:
Vincent Bernat 2021-08-04 08:21:27 +02:00
parent 8d70ce8106
commit 3d9c3e458c
2 changed files with 12 additions and 3 deletions

View file

@ -0,0 +1,5 @@
[Unit]
Description=Screen dimmer
[Service]
ExecStart=%h/.config/i3/bin/dimmer --delay=%i