From ad6f8e9ccb55c1f4ef24d8aac9104336870e228f Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 8 Oct 2020 23:37:05 +0800 Subject: [PATCH] [misc] move locking setting to autostart --- suckless/config/dwm/autostart | 1 + suckless/install.sh | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/suckless/config/dwm/autostart b/suckless/config/dwm/autostart index a8c0b27..eabc1d5 100755 --- a/suckless/config/dwm/autostart +++ b/suckless/config/dwm/autostart @@ -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) & diff --git a/suckless/install.sh b/suckless/install.sh index 359b75b..e3354a6 100755 --- a/suckless/install.sh +++ b/suckless/install.sh @@ -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