You are not logged in.
Pages: 1
Hi,
I want a program that displays the time. I tried to make one using zenity:
#!/bin/bash
A=`date +%R`
zenity --info --title=Time --text=$A
exit 0
Also my script does not update the time but I want it to update.
Thanks.
Last edited by helpvampire (2009-08-10 22:27:40)
Offline
xclock?
Last edited by hbekel (2009-08-10 16:34:06)
Offline
Xclock works except the window doesn't focus when I click on it which means I have to use terminal to close it.
Last edited by helpvampire (2009-08-10 17:02:13)
Offline
I'm guessing you'll need to throw a while loop in the bash code to make it update. Not sure how to handle getting rid of the icon and button. Would using a panel clock be just as good?
Offline
Are you married to the idea of using zenity? dzen is pretty suitable for this.
while true; do
echo $(date +'%R') | dzen
sleep 1m
done;
Offline
!rage
xclock actaully rocks, or use a bar to display your clock
Last edited by jelly (2009-08-11 06:35:06)
Offline
Pages: 1