I have a short Bash script that produces a simple clock in the top left corner of a bash shell window.
I've copied the text of the script below.
I'd like to create a very simple Yad script that displays the date and time like this:
Jun 13, 2022 02:42:01 PM
in a small Yad clock. I've seen a Yad alarm clock called yalarm that was created a few years ago.
I have been able to modify the clock time in that script using the simple "%r" string instead of the "%H:%M:%S" string, but when I attempt to pull out the alarm clock function I have been unable to do that successfully and still display the time or the date and time.
Here is my bash script code:
Code: Select all
loop=1
while (( loop )); do
clear
date +"%b %d, %Y %r"
sleep 0.5s
done
Does anyone know what I can add to this simple script to display it in a small yad window instead of the terminal window?
Thanks for any guidance.