Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-12-03 23:49:04

moi_classic2007
Member
Registered: 2017-01-07
Posts: 4

[xfce4] How can I change appearance of analog clock on xfce-panel?

hello everyone! please tell me how can I change the appearance of the analog clock on xfce4 panel?
This is my screenshot
FluxBB bbcode test
FluxBB bbcode test

Offline

#2 2017-12-04 10:39:14

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: [xfce4] How can I change appearance of analog clock on xfce-panel?

We had that question back with MX-14, and ToZ helped us out. In our case, we wanted to change the foreground (=fg) color from default black to white, so we created the file ~/.gtk-2.0/gtkrc with the following contents:

style "myclock" {
fg[NORMAL] = "#ffffff"
}
class "XfceXfceClockAnalog" style "myclock"

If you were interested in a color change, you could copy this and just change the hex code to another color such as red #ff0000. Hex codes and colors are easy to find with a web search.

For any other kind of change, you'll have to wait for someone else to come along...


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#3 2017-12-04 14:28:19

moi_classic2007
Member
Registered: 2017-01-07
Posts: 4

Re: [xfce4] How can I change appearance of analog clock on xfce-panel?

Tks so much!

The main aim is to make the analog clog looks more clearly. So I had downloaded the source package  of xfce4 panel, then I made changes in clock-analog.c file. In addition, with your answer, this is what I received^^ :

screenshot3155.png

I love analog clock because it help me feel the time better

Last edited by moi_classic2007 (2017-12-04 14:32:32)

Offline

#4 2017-12-04 14:48:26

Jerry3904
Member
Registered: 2013-11-09
Posts: 850

Re: [xfce4] How can I change appearance of analog clock on xfce-panel?

I use that clock too, though I get laughed at by my fellow Devs...


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#5 2017-12-04 20:25:39

Sideburns
Member
From: Trinidad, CO
Registered: 2011-03-30
Posts: 467
Website

Re: [xfce4] How can I change appearance of analog clock on xfce-panel?

If you'd rather have an analog clock on your desktop, you might try TzClock.  I have it set to show up on all desktops, but not the panel, making it quite convenient.  Alas, it doesn't save its settings by default, but if you run it from a terminal as TzClock -t it will create ~/.tzclockrc, store its settings there and use them in the future.  (Alas, that option's undocumented, but I found out by emailing the author.)  If you need, you have it show four clocks, in different time zones, act as a stopwatch or alarm clock and so on.  I've only used it with one time zone and no alarms, so I don't know how good they are, but it's worth mentioning them.


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

#6 2017-12-04 20:51:13

moi_classic2007
Member
Registered: 2017-01-07
Posts: 4

Re: [xfce4] How can I change appearance of analog clock on xfce-panel?

Good suggestion! but I found the native analog clock of xfce is more suitable for long time, somehow I can't explain although TzClock is very cool!

Offline

#7 2017-12-05 04:13:56

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 579
Website

Re: [xfce4] How can I change appearance of analog clock on xfce-panel?

you cloud use the wmdock panel plugin and load a nice dockapp in it eg: http://www.dockapps.net/category/time

Offline

Board footer

Powered by FluxBB