Skip to content

Instantly share code, notes, and snippets.

@amir
Created July 14, 2009 16:25
Show Gist options
  • Select an option

  • Save amir/147040 to your computer and use it in GitHub Desktop.

Select an option

Save amir/147040 to your computer and use it in GitHub Desktop.
#!/bin/bash
until [ -S ~/.awesome_ctl.0 ] ; do
sleep 1
done
while [ -S ~/.awesome_ctl.0 ] ; do
echo gmailwidget.text = `wget -qO- --http-user=username --http-password=password https://mail.google.com/mail/feed/atom | grep fullcount | sed 's/<fullcount>\(.*\)<\/fullcount>/\1/'` | awesome-client
sleep 300
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment