Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
while inotifywait -e moved_to ~/.mail/{gmail,work}/inbox/new/; do
notify-send -i /usr/share/icons/Humanity/status/48/dialog-info.svg "You've got a new mail.'"
aplay -q ~/.mybashscripts/mail.wav
done
@ggarlic
ggarlic / extract files
Created January 11, 2013 03:33
extract files
#extract files
shopt -s extglob
extract() {
local c e i
(($#)) || return
for i; do
c=''
e=1