mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-22 20:04:30 +02:00
lock: when going to sleep, clear ssh-agent keys
This commit is contained in:
parent
298a7035be
commit
b149d0a07a
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@ case "$1" in
|
|||
lock)
|
||||
# First, stop any music player
|
||||
xdotool key XF86AudioStop
|
||||
# Clear ssh-agent keys (when going to sleep)
|
||||
[ -z "${XSS_SLEEP_LOCK_FD}" ] || ssh-add -D
|
||||
# Then, lock screen
|
||||
i3lock_options="-e -i $HOME/.cache/awesome/current-wallpaper.png -t -f"
|
||||
echo "$(date --rfc-3339=seconds) $me: lock: lock screen"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue