diff --git a/root/usr/local/bin/cron-notify b/root/usr/local/bin/cron-notify new file mode 100755 index 0000000..3983937 --- /dev/null +++ b/root/usr/local/bin/cron-notify @@ -0,0 +1,12 @@ +#!/bin/sh +# Crontab requires DISPLAY and XDG_RUNTIME_HOME +# to be set when running notify-send, this script +# makes defines those to make it eaiser to send +# notifications from crontab without cluttering it +# It sets "Cron Notification" title, rest of the +# arguments are passed to notfiy-send + +XDG_RUNTIME_DIR="/run/user/$(id -u)" \ +DISPLAY=:0 \ +notify-send "Cron Notification" $@ +