aboutsummaryrefslogtreecommitdiffstats
path: root/.xprofile
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2017-11-03 18:27:48 +0100
committerDavid Runge <dave@sleepmap.de>2017-11-03 18:27:48 +0100
commita91295a574befad375b03230136370c75290cce4 (patch)
tree30a1faf44e94e665837237219842cc8cad9d9974 /.xprofile
parenta926d9ca69d88e9a547900f001ab52e5e15a5cc1 (diff)
downloaddotfiles-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.
Diffstat (limited to '.xprofile')
-rw-r--r--.xprofile18
1 files 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