|
|
DarthQuiGon
|
DarthQuiGon
|
alias clock { /timerClock 0 1 echo -a $!asctime($time) | haltdef }
i made this ,i want like a normal clock , because my way show the
13:00:50 13:00:51
thanx for your help
|
|
|
|
Joined: Aug 2005
Posts: 1,052
Hoopy frood
|
Hoopy frood
Joined: Aug 2005
Posts: 1,052 |
//timer 0 1 //echo -a $!asctime(h:nn:ss)
-Displays 3:00:29 hour regular : minutes : seconds
//timer 0 1 //echo -a $!asctime(H:nn:ss)
-Displays 15:00:29 hour milatary : minutes : seconds
|
|
|
|
DarthQuiGon
|
DarthQuiGon
|
thnx , but i want other think , i mean like a regular clock ,
7:16:02 7:16:03 7:16:04 7:16:05
not like this
|
|
|
|
Joined: Aug 2004
Posts: 7,168
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,168 |
You're going to have to clarify what you mean by "regular clock"
If you mean a clock with the numbers 1 to 12 and two or three hands (one to show the hour, one to show minutes and one to show seconds), then this might be possible using a picture window, but it would not be simple. P.S.: This is sometimes referred to as an analog clock.
The two codes given will show the current time in a digital clock format (either 12 or 24 (aka military) hour format)
|
|
|
|
DarthQuiGon
|
DarthQuiGon
|
thnx , but i want try to do , is get the hour ,
17:00:00 but change in the same line not in others
ej.
17:00:01 17:00:02
i mean
17:00:01 then incrise 17:00:02
thnx
|
|
|
|
Joined: Aug 2004
Posts: 7,168
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,168 |
This will require either a dialog, or a custom window. Either of which can easily be written, depending on your preference, however, as it's 4:20 am, I'm going to bed soon, so I won't be able to work on this for another 14 - 18 hours.
|
|
|
|
Sintel
|
Sintel
|
The following is for a custom window, haven't checked for a dialog yet: alias clockStart {
window -c @Clock
window -z @Clock
echo @Clock $asctime(H:nn:ss)
.timerclock 0 1 //rline @Clock 1 $!asctime(H:nn:ss)
}
alias clockStop {
timerclock off
window -c @Clock
} That works, however, as said, it's in a separate custom window, so I'm not so sure it is all that useful. You can tile your windows to see it all the time  Where did you originally want it displayed?
|
|
|
|
DarthQuiGon
|
DarthQuiGon
|
thnx so much, is that what i want
|
|
|
|
Joined: Aug 2004
Posts: 7,168
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,168 |
I'm glad a custom window was done up, as I've got little experience with them. On a side note, you could also use this, which puts the date & time (adjustable to your preferences) in the title bar on *:start:{
.timertime -m 0 500 titlebar $!asctime(ddd mmm ddoo yyyy @ h:nn:ss tt)
}
Note: This will replace your current titlebar display, not append to it.
|
|
|
|
|
|