mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-03 09:44:28 +02:00
lock: sleep a bit to let i3lock lock the screen
We could let i3lock fork to notify us but then, we have to spy on it to know when the screen is unlocked.
This commit is contained in:
parent
097e076694
commit
bfb8c77781
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ case "$1" in
|
|||
if [ -e /proc/self/fd/${XSS_SLEEP_LOCK_FD:--1} ]; then
|
||||
trap 'kill %%' TERM INT
|
||||
i3lock -n $i3lock_options {XSS_SLEEP_LOCK_FD}<&- &
|
||||
sleep 0.3 # Slight race condition, better than an active loop
|
||||
exec {XSS_SLEEP_LOCK_FD}<&-
|
||||
wait
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue