don't fork i3lock

This commit is contained in:
Pig Monkey 2023-11-15 22:17:26 -08:00
parent e385335631
commit 1fa98f4f78
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ if ! pidof i3lock > /dev/null; then
brightnessctl --quiet --save
brightnessctl --quiet set 10%
fi
/usr/bin/i3lock --color=1d2021 --ignore-empty-password
/usr/bin/i3lock --color=1d2021 --ignore-empty-password --nofork
if [ "$BRIGHTNESS" = true ]; then
brightnessctl --quiet --restore
fi

View file

@ -4,7 +4,7 @@ Before=sleep.target
[Service]
User=%I
Type=forking
Type=simple
Environment=DISPLAY=:0
ExecStart=/usr/local/bin/lock
ExecStartPost=/usr/bin/sleep 1