aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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