Use long option and pkill instead of ps|grep
This commit is contained in:
parent
4dcd3f6d3a
commit
9f9aae8403
24
veille.sh
24
veille.sh
|
@ -17,43 +17,43 @@
|
||||||
|
|
||||||
# SSH Connections
|
# SSH Connections
|
||||||
killall ssh
|
killall ssh
|
||||||
rm -rf ~/.ssh/socks/*
|
rm --recursive --force -- ~/.ssh/socks/*
|
||||||
|
|
||||||
# SSH Agent
|
# SSH Agent
|
||||||
killall ssh-agent
|
killall ssh-agent
|
||||||
rm -rf /tmp/ssh-*
|
rm --recursive --force -- /tmp/ssh-*
|
||||||
|
|
||||||
# GPG Agent
|
# GPG Agent
|
||||||
keychain --agents gpg --clear
|
keychain --agents gpg --clear
|
||||||
kill $(pidof gpg-agent)
|
kill $(pidof gpg-agent)
|
||||||
|
|
||||||
# Delete everything link to ssh-agent or gpg-agent
|
# Delete everything link to ssh-agent or gpg-agent
|
||||||
rm -rf ~/.keychain/*
|
rm --recursive --force -- ~/.keychain/*
|
||||||
|
|
||||||
# git-credential sockets
|
# git-credential sockets
|
||||||
killall git-credential-cache--daemon
|
killall git-credential-cache--daemon
|
||||||
rm -f ~/.git-credential-cache/*
|
rm --force -- ~/.git-credential-cache/*
|
||||||
|
|
||||||
# Keepass2 (killall keepass, both those launch with 'mono' and those launch with 'cli)
|
# Keepass2 (killall keepass, both those launch with 'mono' and those launch with 'cli)
|
||||||
ps ax | grep -v 'awk' | awk '/keepass2/,NF=1' | xargs kill
|
pkill --full -- "keepass"
|
||||||
|
|
||||||
# Delete sensitive files can contains unwanted clear passwords
|
# Delete sensitive files can contains unwanted clear passwords
|
||||||
rm -f ~/.config/evince/print-settings ~/.config/eog/eog-print-settings.ini
|
rm --force -- ~/.config/evince/print-settings ~/.config/eog/eog-print-settings.ini
|
||||||
|
|
||||||
# Delete GIMP's sensitives files
|
# Delete GIMP's sensitives files
|
||||||
find ~/.config -ipath "*GIMP*" -and -iname "print-page-setup" -delete
|
find ~/.config -ipath "*GIMP*" -and -iname "print-page-setup" -delete
|
||||||
find ~/.config -ipath "*GIMP*" -and -iname "print-settings" -delete
|
find ~/.config -ipath "*GIMP*" -and -iname "print-settings" -delete
|
||||||
|
|
||||||
# Purge local user recent files
|
# Purge local user recent files
|
||||||
rm -f -- ~/.local/share/recently-used.xbel
|
rm --force -- ~/.local/share/recently-used.xbel
|
||||||
rm -f -- ~/.recently-used
|
rm --force -- ~/.recently-used
|
||||||
rm -f -- ~/.thumbnails/normal
|
rm --force -- ~/.thumbnails/normal
|
||||||
rm -f -- ~/.config/vlc/vlc-qt-interface.conf
|
rm --force -- ~/.config/vlc/vlc-qt-interface.conf
|
||||||
rm -f -- ~/.config/smplayer/smplayer.ini
|
rm --force -- ~/.config/smplayer/smplayer.ini
|
||||||
|
|
||||||
# Turn off the screen
|
# Turn off the screen
|
||||||
sleep 3; xset dpms force off
|
sleep 3; xset dpms force off
|
||||||
|
|
||||||
# Lock the screen
|
# Lock the screen
|
||||||
#i3lock -c 000000 --pointer win -d
|
#i3lock -c 000000 --pointer win -d
|
||||||
i3lock -i /home/jegardai/Images/system/empire_needs_you.png --pointer win -d -e -t
|
i3lock --image=/home/jegardai/Images/system/empire_needs_you.png --pointer win -d -e -t
|
||||||
|
|
Loading…
Reference in New Issue