Add custom system-wide scripts

This commit is contained in:
ItsDrike 2022-11-19 22:20:56 +01:00
parent 9ce557ba05
commit 62c4bec0a7
No known key found for this signature in database
GPG key ID: B014E761034AF742
4 changed files with 421 additions and 0 deletions

11
root/usr/local/bin/cron-notify Executable file
View file

@ -0,0 +1,11 @@
#!/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 "$@"