From 9a6781956954bc8ff966697a8ea08de763754210 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 3 Feb 2018 11:46:00 +0100 Subject: .xprofile: Adding lock mechanism for sleep (using xss-lock). Fixing comment. --- .xprofile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.xprofile') diff --git a/.xprofile b/.xprofile index 5a9abe1..34ad424 100644 --- a/.xprofile +++ b/.xprofile @@ -21,11 +21,16 @@ if [ -x "$HOME/bin/setup_screens" ]; then $HOME/bin/setup_screens & fi -# start automatic lock based on xssstate and i3lock +# lock X automatically after inactivity if [ -x "$HOME/bin/xorg_autolock" ]; then $HOME/bin/xorg_autolock & fi +# lock X before going to sleep +if [ -x "/usr/bin/xss-lock" ]; then + /usr/bin/xss-lock xorg_lock & +fi + # start redshift if [ -x /usr/bin/redshift ]; then /usr/bin/redshift-gtk & -- cgit v1.2.3-70-g09d2