Unlock watcher to automatically run modeset --unlock
This commit is contained in:
14
wait_unlock.sh
Executable file
14
wait_unlock.sh
Executable 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
|
||||||
Reference in New Issue
Block a user