fixed lock screen activation on suspend. Thanks Suayip :*

This commit is contained in:
Rick van Lieshout 2024-04-09 18:45:06 +02:00
parent 0a67016b07
commit dd5f32a6eb

View File

@ -1,9 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# check if locked # check if locked
if !(pgrep -x "i3lock" > /dev/null) if ! pgrep -x "i3lock" >/dev/null; then
then echo "not locked, locking"
bash ~/.config/i3/scripts/i3lock.sh --suspend bash ~/.config/i3/scripts/lock.sh --suspend
fi fi
systemctl suspend systemctl suspend