Unlock watcher to automatically run modeset --unlock

This commit is contained in:
Ferit Yiğit BALABAN 2022-06-12 18:06:30 +03:00
parent 131c7c8513
commit df318e255c

14
wait_unlock.sh Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
#
# Ferit Yiğit BALABAN <f@fybx.dev>, 2022
#
sleep 5
while : ; do
if pgrep -x "i3lock" > /dev/null
then
sleep 5
else
echo Unlock!
break
fi
done