autologin and autostart xsecurelock

This commit is contained in:
Felix Van der Jeugt 2016-01-05 15:24:52 +01:00
parent 4bf7e378ee
commit f8da28c326
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh
xsecurelock # force login before further initing
userresources=$HOME/.config/Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
@ -44,7 +46,7 @@ forklog xautolock -time 1 -locker xsecurelock
forklog xset dpms 0 0 50 s off
# Start herbstluftwm in locked mode. Is unlocked after autostart.
exec xmonad
xmonad
# Cleaning up
pkill redshift
@ -52,3 +54,5 @@ pkill dunst
pkill xcape
pkill xautolock
wait

4
zlogin Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx