Browse Source

Remove all ssh identities when falling asleep

Alois Mahdal 6 years ago
parent
commit
5739987961
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      dotfiles/config/bmo/hook.ini

+ 4
- 0
dotfiles/config/bmo/hook.ini View File

@@ -4,6 +4,10 @@
4 4
 [hook.kb]
5 5
     post = killall -SIGUSR1 i3status
6 6
 
7
+[hook.iam]
8
+    zleep = ssh-add -D && notify-send -a "saturnin:hook.iam.zleep" "ssh identities removed"
9
+    zleep = sleep 3
10
+
7 11
 
8 12
 [hook.iam]
9 13
     log_afk      = echo "$(date -Iseconds) | afk one time" >> ~/.bmo-iam.log