mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-14 12:17:17 +00:00
13 lines
383 B
Plaintext
13 lines
383 B
Plaintext
|
#!/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" $@
|
||
|
|