veille: update condition to clean system

This commit is contained in:
gardouille 2024-03-13 12:20:24 +01:00
parent bb21e41b36
commit 5b0e057cb9
Signed by: gardouille
GPG Key ID: E759BAA22501AF32

View File

@ -15,20 +15,20 @@
## depend: i3lock
# SSH Connections
killall ssh
# SSH Agent
killall --quiet ssh
rm --recursive --force -- ~/.ssh/socks/*
# SSH Agent
killall ssh-agent
# SSH Agent - default path
killall --quiet ssh-agent
rm --recursive --force -- /tmp/ssh-*
# GPG Agent
keychain --agents gpg --clear
pkill --uid="$(id -u)" -- "gpg-agent"
# Delete everything link to ssh-agent or gpg-agent
rm --recursive --force -- ~/.keychain/*
# Keychain - Delete everything link to ssh-agent or gpg-agent
test -d ~/.keychain && rm --recursive --force -- ~/.keychain/*
# git-credential sockets
pkill --uid="$(id -u)" --full -- "git-credential-cache"
@ -56,4 +56,4 @@ sleep 3; xset dpms force off
# Lock the screen
#i3lock -c 000000 --pointer win -d
i3lock --image=/home/jegardai/Images/system/empire_needs_you.png --pointer win -d -e -t
i3lock --image=/home/jgardais/Images/system/empire_needs_you.png --pointer win -d -e -t