]> git.rmz.io Git - dotfiles.git/commitdiff
xprofile: force screen off, lock and suspend
authorSamir Benmendil <samir.benmendil@gmail.com>
Sat, 10 May 2014 17:15:27 +0000 (18:15 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Sun, 11 May 2014 01:32:58 +0000 (02:32 +0100)
xprofile

index 3161e09b986da22e027b6034e15e47d1c02f6f7f..0f7c9a30d595e35b6fa1be0748daf3c78796c48e 100644 (file)
--- a/xprofile
+++ b/xprofile
@@ -1,6 +1,9 @@
 start-pulseaudio-x11
 compton -b --config ~/.config/compton.conf
-xautolock -time 10 -locker "i3lock -n -c 000000" -detectsleep &
+xautolock -detectsleep \
+          -notify  300 -notifier "xset dpms force off" \
+          -time     10 -locker   "i3lock -nc 000000" \
+          -killtime 90 -killer   "systemctl suspend" &
 xkbcomp -I$HOME/.config/xkb $HOME/.config/xkb/$HOST.xkb $DISPLAY
 xbindkeys
 xcape -e "Control_L=Escape;Control_R=Escape"