dotfiles/root/usr/local/bin/cron-notify

12 lines
364 B
Plaintext
Raw Normal View History

2021-07-22 23:56:03 +00:00
#!/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 \
2022-06-21 14:23:34 +00:00
notify-send "$@"