Unlock watcher to automatically run modeset --unlock
This commit is contained in:
parent
131c7c8513
commit
df318e255c
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
|
Loading…
x
Reference in New Issue
Block a user