Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .xsession.thinkpad
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ mpd &
SESSION_ID=$(loginctl show-user "$USER" -p Display --value)
export XSECURELOCK_SHOW_USERNAME=0
export XSECURELOCK_PASSWORD_PROMPT="Password:"
xss-lock --transfer-sleep-lock --session "$SESSION_ID" -- xsecurelock &
# Run the lock wrapper (ssh-agent purge + vault close) instead of bare
# xsecurelock, so suspend-triggered locks get the same cleanup as Mod+l and
# idle locks. The wrapper execs xsecurelock, preserving XSS_SLEEP_LOCK_FD.
xss-lock --transfer-sleep-lock --session "$SESSION_ID" -- "$HOME/bin/xscreensaver-lock" &
# Idle locking after 10 minutes; use ~/bin/xscreensaver-lock
xautolock -detectsleep -locker ~/bin/xscreensaver-lock -time 10 -corners 0+00 -cornerdelay 2 &
xrdb ~/.Xresources
Expand Down