aboutsummaryrefslogtreecommitdiffstats
path: root/.xprofile
diff options
context:
space:
mode:
Diffstat (limited to '.xprofile')
-rw-r--r--.xprofile7
1 files changed, 6 insertions, 1 deletions
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 &