From a91295a574befad375b03230136370c75290cce4 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 3 Nov 2017 18:27:48 +0100 Subject: .xprofile: Disabling screensaver and DPMS. Exchanging light-locker with xautolock and i3lock. --- .xprofile | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.xprofile b/.xprofile index c5c1c70..c618e2b 100644 --- a/.xprofile +++ b/.xprofile @@ -10,6 +10,14 @@ if [[ -f ~/.Xresources ]];then /usr/bin/xrdb ~/.Xresources & fi +# set X settings +if [ -x /usr/bin/xset ]; then + # disable bell + xset -b + # disable screensaver and dpms + xset s off -dpms +fi + # start lxpolkit to have polkit authentication if [ -x /usr/bin/lxpolkit ]; then /usr/bin/lxpolkit & @@ -20,9 +28,13 @@ if [ -x "$HOME/bin/setup_screens" ]; then $HOME/bin/setup_screens & fi -# start light-locker daemon, if available -if [ -x /usr/bin/light-locker ]; then - /usr/bin/light-locker --lock-after-screensaver=1 --lock-on-suspend & +# start xautolock +if [ -x /usr/bin/xautolock -a -x /usr/bin/i3lock ]; then + /usr/bin/xautolock -time 10 \ + -corners "0-00" \ + -killtime 10 \ + -killer "/usr/bin/xset dpms force off" \ + -locker "/usr/bin/i3lock -n -e -c 000000 -f" & fi # start a termite terminal -- cgit v1.2.3-70-g09d2