diff options
author | David Runge <dave@sleepmap.de> | 2017-11-03 18:27:48 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2017-11-03 18:27:48 +0100 |
commit | a91295a574befad375b03230136370c75290cce4 (patch) | |
tree | 30a1faf44e94e665837237219842cc8cad9d9974 | |
parent | a926d9ca69d88e9a547900f001ab52e5e15a5cc1 (diff) | |
download | dotfiles-a91295a574befad375b03230136370c75290cce4.tar.gz dotfiles-a91295a574befad375b03230136370c75290cce4.tar.bz2 dotfiles-a91295a574befad375b03230136370c75290cce4.tar.xz dotfiles-a91295a574befad375b03230136370c75290cce4.zip |
.xprofile: Disabling screensaver and DPMS. Exchanging light-locker with xautolock and i3lock.
-rw-r--r-- | .xprofile | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -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 |