Permalink
Browse files

Add some more scripts

  • Loading branch information...
1 parent 2331f1e commit 2fbe8b70cd8feb04c6f50c014fbd6690e0d06c76 @nelhage committed Sep 17, 2012
Showing with 11 additions and 0 deletions.
  1. +2 −0 mutt.stripe
  2. +9 −0 socket-cleanup
View
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec mutt -F $HOME/.muttrc.stripe
View
@@ -0,0 +1,9 @@
+#!/usr/bin/python
+import os
+from gi.repository import GLib, NMClient
+def active_connections_changed(*args):
+ for sock in os.listdir(os.path.expanduser('~/.ssh/sockets')):
+ os.unlink(os.path.join(os.path.expanduser('~/.ssh/sockets'), sock))
+c = NMClient.Client.new()
+c.connect('notify::active-connections', active_connections_changed)
+GLib.MainLoop().run()

0 comments on commit 2fbe8b7

Please sign in to comment.