quickly cloning an existing statusbar script (date)?
Juri Mianovich <juri_mian-/[email protected]>
| Newsgroups | gmane.comp.window-managers.ion.general |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to do something very simple: [ Thu 2008-11-13 12:56 (US) || Thu 2008-11-13 19:56 (UK) ] I'm just trying to display two timezones at the same time in the statusbar. Since 'date' is already included in the statusbar by default, I am trying to do this without writing a new script. I have tried two things: First, I: cp /usr/local/lib/ion3/lc/statusd_date.lc /usr/local/lib/ion3/lc/statusd_ukdate.lc and then uncommented, and changed the /usr/local/etc/ion3/cfg_statusbar.lua template line to: template="[ %date || %ukdate || load: %05load_1min || mail: %02mail_new/%02mail_total ] %filler%systray", But the statusbar just has a "??" in it for "%ukdate", even though that script exists. ALSO, I am not sure how I would edit statusd_ukdate.lc to have a +7 hours in its 'date' command, since the .lc file is not text, but just binary data. So that attempt did not work well - was I close ? Is there any way to just copy and quickly edit the _existing_ date script and stick it into my systemwide template ? My second attempt was to just change the default date_format line in cfg_statusbar.lua to output multiple dates: date_format='%a %Y-%m-%d %H:%M (US) || %a %Y-%m-%d %H:%M (UK) This ^^^ DOES work, but I do not see how to modify the: %a %Y-%m-%d %H:%M to add a +7 offset to %H ... --- which of these two strategies should I continue to pursue ? Again, I don't want to write new scripts since the date script is _already_ written and I just want to reuse it ... Thanks.