2014-09-23 01:11:00 +02:00
|
|
|
#!/bin/sh
|
2014-09-22 23:00:59 +02:00
|
|
|
|
2014-09-23 01:11:00 +02:00
|
|
|
# Description: Kill all ssh connections
|
|
|
|
# Delete all ssh agents
|
|
|
|
# Ensure to kill all ssh-agent
|
|
|
|
# Ensure to kill all gpg-agent
|
|
|
|
# Lock the screen
|
|
|
|
### Give an easy way to call this function with a keybind.
|
|
|
|
## For example with herbstluftwm: "hc keybind $Mod-Shift-c spawn ~/bin/veille.sh"
|
2014-09-22 23:00:59 +02:00
|
|
|
|
2014-09-23 01:11:00 +02:00
|
|
|
## depend: i3lock
|
2014-09-22 23:00:59 +02:00
|
|
|
|
2014-09-23 01:11:00 +02:00
|
|
|
# SSH Connections
|
|
|
|
killall ssh
|
|
|
|
rm -rf ~/.ssh/socks/*
|
|
|
|
# SSH Agent
|
|
|
|
killall ssh-agent
|
|
|
|
rm -rf /tmp/ssh-*
|
|
|
|
# GPG Agent
|
|
|
|
killall gpg-agent
|
|
|
|
# Delete everything link to ssh-agent or gpg-agent
|
|
|
|
rm -rf ~/.keychain/*
|
2015-09-20 23:57:02 +02:00
|
|
|
# Kill mono (that runs KeePass!)
|
|
|
|
killall mono
|
2014-09-23 01:11:00 +02:00
|
|
|
# Lock the screen
|
2015-03-26 10:48:50 +01:00
|
|
|
#i3lock -c 000000 --pointer win -d
|
2015-09-03 22:33:26 +02:00
|
|
|
i3lock -i /home/jegardai/Images/system/empire_needs_you.png --pointer win -d -e -t
|