==unplugged.sh== #!/bin/bash canberra-gtk-play -f /home/eins/solemn.ogg ==plugged.sh== #!/bin/bash canberra-gtk-play -f /home/eins/solemn.ogg ==notify.rules== KERNEL=="sd[a-z][0-9]",SUBSYSTEMS=="usb",ACTION=="add",RUN+="/bin/bash /home/eins/plugged.sh" KERNEL=="sd[a-z][0-9]",SUBSYSTEMS=="usb",ACTION=="remove",RUN+="/bin/bash /home/eins/unplugged.sh"