From dd5f32a6eb4551a3127afe54234dcb00d35a9083 Mon Sep 17 00:00:00 2001 From: Rick van Lieshout Date: Tue, 9 Apr 2024 18:45:06 +0200 Subject: [PATCH] fixed lock screen activation on suspend. Thanks Suayip :* --- i3/scripts/suspend.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/i3/scripts/suspend.sh b/i3/scripts/suspend.sh index 3968a67..ce7de0a 100644 --- a/i3/scripts/suspend.sh +++ b/i3/scripts/suspend.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash # check if locked -if !(pgrep -x "i3lock" > /dev/null) -then - bash ~/.config/i3/scripts/i3lock.sh --suspend +if ! pgrep -x "i3lock" >/dev/null; then + echo "not locked, locking" + bash ~/.config/i3/scripts/lock.sh --suspend fi -systemctl suspend \ No newline at end of file +systemctl suspend