topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday April 16, 2024, 8:38 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: date and time in statusbar  (Read 11793 times)

cracksloth

  • Member
  • Joined in 2005
  • **
  • default avatar
  • Posts: 72
    • View Profile
    • Donate to Member
date and time in statusbar
« on: August 21, 2008, 05:26 PM »
Especially now that FARR forces the presence of the statusbar, I would really like to be able to modify the option:
  "text to show on statusbar on launch"
with something more useful (specifically the time and the date).  are there currently any variable strings i can insert to accomplish this?  if not, would you consider adding these variables:

%a - Abbreviated weekday name
%A - Full weekday name
%b - Abbreviated month name
%B - Full month name
%d - Day of month as decimal number (01 - 31)
%H - Hour in 24-hour format (00 - 23)
%I - Hour in 12-hour format (01 - 12)
%m - Month as decimal number (01 - 12)
%M - Minute as decimal number (00 - 59)
%p - Current locale's A.M./P.M. indicator for 12-hour clock
%S - Second as decimal number (00 - 59)
%y - Year without century, as decimal number (00 - 99)
%Y - Year with century, as decimal number
%C - center text in the statusbar
%% - Percent sign

for example, if i wanted the statusbar to read:
Wednesday, August 21 - 3:11 pm
and have it centered in the statusbar, i would insert:
%A, %B %d - %I:%M %p%C

other useful variables could eventually be added later by users request (like uptime, cpu load, memory usage, etc.)

thanks for the continued work on FARR! it's working great!

-cracksloth

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: date and time in statusbar
« Reply #1 on: August 21, 2008, 05:56 PM »
i kind of like this idea.. perhaps a good solution would be to let plugins control the statusbar and titlebar text.

cracksloth

  • Member
  • Joined in 2005
  • **
  • default avatar
  • Posts: 72
    • View Profile
    • Donate to Member
Re: date and time in statusbar
« Reply #2 on: August 21, 2008, 06:39 PM »
hmmm...  if you are looking at making statusbar plugins, maybe you should approach it like a widget system.  for example, you can embed a centered date/time widget in the statusbar.  and/or add a cpu widget.  and/or add a memory widget.  etc.  this would keep the interface for customizing the statusbar consistent and easy to extend (each widget would have its own settings dialog).

-cracksloth
« Last Edit: August 21, 2008, 06:41 PM by cracksloth »

cracksloth

  • Member
  • Joined in 2005
  • **
  • default avatar
  • Posts: 72
    • View Profile
    • Donate to Member
Re: date and time in statusbar
« Reply #3 on: August 22, 2008, 04:48 PM »
the more i think about this idea, the more i like it.  here is one more thought:

currently, the default statusbar content ("text to show on statusbar on launch") will be replaced by:
1) typing (eg. "found x results in y seconds")
2) selecting a new item from the list (eg. "C:\WINDOWS\explorer.exe")
3) stopping a search (eg. "search stopped after finding x results in y seconds")
4) etc.

it would be great to have an option to disable these updates so that the default statusbar content would persist even if one of these events is triggered.
« Last Edit: August 22, 2008, 04:51 PM by cracksloth »

alias

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 71
    • View Profile
    • Donate to Member
Re: date and time in statusbar
« Reply #4 on: September 10, 2009, 12:08 PM »
i kind of like this idea.. perhaps a good solution would be to let plugins control the statusbar and titlebar text.

Did anything ever come of this?  The one thing I miss about SlickRun was that I could make it show the time and date when it got focus, so no need to waste any screen real estate to show it all the time...  I'd actually prefer to see it in the Title Bar, myself...

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: date and time in statusbar
« Reply #5 on: September 10, 2009, 12:10 PM »
that would be really easy for me to add.. why dont i go ahead and add an option to show date+time in status bar on display.

alias

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 71
    • View Profile
    • Donate to Member
Re: date and time in statusbar
« Reply #6 on: September 10, 2009, 12:43 PM »
that would be really easy for me to add.. why dont i go ahead and add an option to show date+time in status bar on display.

Now you're making me feel guilty about sending in more money. :D

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: date and time in statusbar
« Reply #7 on: November 20, 2009, 10:57 AM »
Added to titlebar options (look in advanced visual options tab) as of v2.80.01

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: date and time in statusbar
« Reply #8 on: November 20, 2009, 11:05 AM »
wanted to say thanks for requesting this feature -- it's one of my favorite new features  :up:

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: date and time in statusbar
« Reply #9 on: November 20, 2009, 10:59 PM »
yes, i like the way it can be customized with additional tokens. :up:

alias

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 71
    • View Profile
    • Donate to Member
Re: date and time in statusbar
« Reply #10 on: November 21, 2009, 07:41 AM »
Yep - this is awesome!  Thanks, mouser!!!

i9uq9p702

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 8
    • View Profile
    • Donate to Member
Re: date and time in statusbar
« Reply #11 on: January 07, 2010, 03:13 AM »
Some of the flags are not working for me as I would expect :

FlagExpectedActual
%c07/01/10 nn:nn:nn01/07/10 nn:nn:nn
%e700
%SUpdate while FARR is on screenDoesn't update
%x07/01/1001/07/10
%X Update while FARR is on screen Doesn't update
%z,%ZDon't know<blank>

FARR 2.80.02
My locale is United Kingdom (dd/mm/yy).