lock: when going to sleep, clear ssh-agent keys

This commit is contained in:
Vincent Bernat 2016-01-17 10:17:58 +01:00
parent 298a7035be
commit b149d0a07a

View file

@ -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"