buzz.sh - displays a predefined message at a given time
buzz.sh time
- time absolute or relative time, as required by at(1) :
-
- H day-part
- HH:MM [month-name DD [YY[YY]]]
- HH:MM DD.MM.YY
- now + count time-unit
Schedules an at(1) job to pop up a message using various commands.
Currently the following commands are supported : xmessage(1), Xdialog(1), kdialog(1), gdialog(1), zenity(1), yad(1), gxmessage(1), gtkdialog(1), xterm(1), eterm(1), aterm(1), terminal(1), konsole(1), vte(1), rxvt(1), gnome-terminal(1). If none of the commands is found, the message be simply written to stdout, letting the daemon to deliver it to the local mailbox.
This script was optimized for simplicity, there is no explicit configuration. However the order of checking for the above commands and the predefined message can be easily modified in the script itself.
- DISPLAY
-
The value of the current DISPLAY is set for the job. If not set, displaying the message by the atd(8) will probably fail.
bash(1), at(1); xmessage(1), Xdialog(1), kdialog(1), gdialog(1), zenity(1), yad(1), gxmessage(1), gtkdialog(1), xterm(1), eterm(1), aterm(1), terminal(1), konsole(1), vte(1), rxvt(1), gnome-terminal(1)
Add more commands to display the messages.
Better configuration for the currently used commands.
No bugs until now. Found bugs can be reported to the author.
Use it healthy.
Feherke