[misc] move locking setting to autostart

This commit is contained in:
Klesh Wong 2020-10-08 23:37:05 +08:00
parent a0903cab9c
commit ad6f8e9ccb
2 changed files with 2 additions and 6 deletions

View File

@ -10,6 +10,7 @@ $HOME/.config/dunst/launch.sh
$HOME/.config/dwm/dwmbar
# setup screen locker
xset s 300
killall xss-lock
xss-lock --ignore-sleep (which slock) &

View File

@ -64,14 +64,9 @@ export XMODIFIERS="@im=ibus"
export QT_IM_MODULE=ibus
export GTK_IM_MODULE=xim
# auto lock after 300 seconds
xset s 300
systemd-lock-handler /usr/local/bin/slock
# setup gnome keyring
dbus-update-activation-environment --systemd DISPLAY
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
export SSH_AUTH_SOCK=$(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
# load monitors profile
autorandr --change --force