Mutt (incl. gmail) widget
From awesome
If you use mutt to read your emails then you may find this "widget" useful.
Create a script named awesome-mutt and put it a directory (in $PATH or you must use full path)
#!/bin/bash
if [ $1 -gt 0 ]; then RESULT=$1; else RESULT="None"; fi
echo 0 widget_tell sb_status tb_gmail text ${RESULT} unread mail | awesome-client
(of course you must change sb_status and tb_gmail to the correct statusbar-name and textbox-name)
And in .muttrc (or an included config-file):
set status_format="awesome-mutt %u|"
Please put the full path if necessary!
If you (want to) use mutt as a gmail-client, put to ~/.muttrc the next lines:
set from=username@gmail.com set use_from=yes set realname="Real Name" set envelope_from=yes set spoolfile = imaps://imap.gmail.com/INBOX set folder = imaps://imap.gmail.com/ set imap_user = 'username@gmail.com' set imap_pass = 'password' set header_cache=~/.mutt/hcache set message_cachedir="~/.mutt/msgcache/" set sort = threads set move = no unset imap_passive set imap_check_subscribed set mail_check=60 set timeout=10 set net_inc=5