From e4312c4983678b8bf8d0ab475700e95528a62ec5 Mon Sep 17 00:00:00 2001 From: Jarno Ilari Suni <8@iki.fi> Date: Tue, 6 Apr 2021 14:46:45 +0300 Subject: xflock4: Apply initial delay before running a screensaver/locker (#29) This is done only if the script is run in terminal to prevent unintentional exposing the lock screen right away. Xflock4 (!20) --- scripts/xflock4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/xflock4 b/scripts/xflock4 index 56d81b8f..bff32b2e 100755 --- a/scripts/xflock4 +++ b/scripts/xflock4 @@ -22,6 +22,10 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # +# Wait a bit so that user have time to raise finger from a key if +# the script is run in terminal. +[ -t 0 ] && sleep 1 + # First test for the command set in the session's xfconf channel LOCK_CMD=$(xfconf-query -c xfce4-session -p /general/LockCommand) -- cgit v1.2.1