2016-03-07 17:31:28 +01:00
|
|
|
#!/bin/bash
|
|
|
|
export DISPLAY=:0
|
|
|
|
let toradex_mail_count=`ls /home/sanchayan/Mail/Toradex/INBOX/new/|wc -l`
|
|
|
|
let stefan_mail_count=`ls /home/sanchayan/Mail/Sanchayan/Stefan/new/|wc -l`
|
|
|
|
let sanchayan_linux=`ls /home/sanchayan/Mail/Sanchayan/Linux\ Kernel/new/|wc -l`
|
|
|
|
|
|
|
|
if (("$toradex_mail_count" > 0)); then
|
2016-10-06 12:11:22 +02:00
|
|
|
sudo -u sanchayan DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send "You have
|
|
|
|
$toradex_mail_count new mails in Toradex"
|
2016-03-07 17:31:28 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if (("$stefan_mail_count" > 0)); then
|
2016-10-06 12:11:22 +02:00
|
|
|
sudo -u sanchayan DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send "You have
|
|
|
|
$stefan_mail_count new mails in Stefan inbox"
|
2016-03-07 17:31:28 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if (("$sanchayan_linux" > 0)); then
|
2016-10-06 12:11:22 +02:00
|
|
|
sudo -u sanchayan DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send "You have
|
|
|
|
$sanchayan_linux new mails in Linux Kernel inbox"
|
2016-03-07 17:31:28 +01:00
|
|
|
fi
|