From df318e255c5136836e028b84279f9dfb0a76954b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Sun, 12 Jun 2022 18:06:30 +0300 Subject: [PATCH] Unlock watcher to automatically run modeset --unlock --- wait_unlock.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 wait_unlock.sh diff --git a/wait_unlock.sh b/wait_unlock.sh new file mode 100755 index 0000000..bf59281 --- /dev/null +++ b/wait_unlock.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# +# Ferit Yiğit BALABAN , 2022 +# +sleep 5 +while : ; do + if pgrep -x "i3lock" > /dev/null + then + sleep 5 + else + echo Unlock! + break + fi +done