Only lock screen automatically on login

This commit is contained in:
mitchell 2021-09-24 14:28:26 -04:00
parent 5e333db741
commit 95a1a8caac
2 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,11 @@
#!/bin/sh
slock &
if [ ! -e ~/.bspwm_no_lock ]
then
slock &
touch ~/.bspwm_no_lock
fi
setxkbmap -option altwin:swap_alt_win
setxkbmap -option ctrl:swapcaps
xset s off -dpms

View File

@ -165,6 +165,8 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
unset f
fi
rm -f $HOME/.bspwm_no_lock
exec bspwm' >~/.xinitrc
log 'Installing arc-gruvbox theme'