mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 04:00:42 +00:00
Add custom system-wide scripts
This commit is contained in:
parent
9ce557ba05
commit
62c4bec0a7
4 changed files with 421 additions and 0 deletions
11
root/usr/local/bin/cron-notify
Executable file
11
root/usr/local/bin/cron-notify
Executable 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 "$@"
|
Loading…
Add table
Add a link
Reference in a new issue