Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Customizing the Format of Your Gnome Clock/Date Applet

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
User avatar
vtel57
Posts: 24
Joined: 2007-05-11 02:32
Location: Tampa, Florida, USA

Customizing the Format of Your Gnome Clock/Date Applet

#1 Post by vtel57 »

Tired of the default format of your Gnome Clock/Date Applet?

Here's how you can change it...

Tools needed:

1) Terminal
2) gconf-editor

Step 1: Open your terminal and type:

Code: Select all

$ man date
This will give you the necessary string variables to customize your date/clock display.

Step 2: Open gconf-editor (Configuration Editor in Gnome Menu):

Step 3: Navigate in gconf-editor to Apps --> Panel --> Applets --> clock_screen0 --> Prefs.

Step 4: Double click on "format" and type in "custom" (no quotes).

Step 5: Double click on "custom format".

Step 6: Enter your custom string data (see Step 1 above) to modify your clock/date display.

The default display in Gnome is U.S.-centric... Monday, May 14 6:01PM. Using this method, you can change that format to whatever you like. For example, on my own system, I changed it to "%H:%M - %A, %d %b", which displays thusly: 18:01 - Monday, 14 May.

Here's a before/after screenshot:

Image

Have FUN! :)
Image Image
Registered Linux User #423757

~V.T. Eric Layton
***Tempus Fugits***

TonyT
Posts: 575
Joined: 2006-09-04 11:57

#2 Post by TonyT »

You can change the text color also by editing (add code to) your current theme gtkrc:

Code: Select all

# clock text color
style "panel-clock"
{
  fg[NORMAL] = "#ffffff"  #change color here
}
widget "*.clock-applet-button.*" style "panel-clock"

User avatar
vtel57
Posts: 24
Joined: 2007-05-11 02:32
Location: Tampa, Florida, USA

#3 Post by vtel57 »

Where can you find the gtkrc file? :?
Image Image
Registered Linux User #423757

~V.T. Eric Layton
***Tempus Fugits***

User avatar
JaRaEeZ
Posts: 14
Joined: 2007-04-18 19:59
Location: UK

#4 Post by JaRaEeZ »

vtel57 wrote:Where can you find the gtkrc file? :?
not on my PC at the mo' but isn't in your home directory hidden of course ~/.gtkrc
Registered Linux user 387538

/home/user1

Image

User avatar
vtel57
Posts: 24
Joined: 2007-05-11 02:32
Location: Tampa, Florida, USA

#5 Post by vtel57 »

JaRaEeZ wrote:
vtel57 wrote:Where can you find the gtkrc file? :?
not on my PC at the mo' but isn't in your home directory hidden of course ~/.gtkrc
HAHA! Yeah... it's been one of those days. When I first went to look for it I did "ls -a /home/vtel57". It wasn't there. HA! I'm in Slackware. What a dummy! Anyway, yeah... it's in my /home/<user> directory in my Gnome distros.

Thanks! :)
Image Image
Registered Linux User #423757

~V.T. Eric Layton
***Tempus Fugits***

Post Reply