I need a message to appear on a schedule

mikeymikec

Lifer
May 19, 2011
19,407
12,930
136
I've started my migration from Windows to dual-booting with Linux as the primary OS. Things are progressing fairly well, though I just realised that I'm missing a pretty vital thing I had set up on Windows for myself; on Windows I had a quick VB script that just says "don't forget your tablets" (no other functionality except an OK button to get rid of the message), scheduled to appear about 7AM every day or the closest equivalent time that the computer is awake.

I don't know how to do either thing on Lubuntu, so help! :)
 

lxskllr

No Lifer
Nov 30, 2004
58,541
8,821
126
Setting a cron job, and piping the text through xcowsay would be a fun way of doing it.

xSH5Nyq.png
 
  • Like
Reactions: mikeymikec

lxskllr

No Lifer
Nov 30, 2004
58,541
8,821
126
LOL. Ok, I'll look in to that. Does it disappear when you click on it, or what?
It has a few settings. It can be a fixed time, a variable time based on length of text, or click to dismiss. I've always used the variable time, so I can't vouch for click to dismiss settings.
 

mikeymikec

Lifer
May 19, 2011
19,407
12,930
136
Yup, figured it out.
Code:
echo "Don't forget your tablets!" | xcowsay -t 0 --at=2,850 --cow-size=small

Next job is sorting out cron.