Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Display seconds in clock (Read 1045 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Display seconds in clock

Hello everyone,

I am a new Artix user, I used Arch a few years back in the pre-systemd era.

Now I am dual booting Artix and Windows on a Acer Aspire D260 netbook with 2 Gb RAM.

I have downloaded the following ISO:

artix-mate-lxde-openrc-community-20190609-x86_64

installed and made a few tweaks.

So far so good except for a small problem which does not make the system unusable but is visually annoying.

I enabled the display of the seconds in the clock on the right lower corner of the screen.
Now when the digits of the clock change the icons on the left of the clock have a slight move horizontally...it is barely visible but it is quite annoying and disturbing.

Any hints on how to stop that behavior? Is it possible to change the font of the clock with a fixed width one?

Thank you in advance.


Steve

Re: Display seconds in clock

Reply #1
Install and run dconf-editor, go to org/mate/panel/objects/clock/prefs/custom-format and put something like
Code: [Select]
<span size="large" font="Monospace"><b>%H:%M:%S</b></span>
in the field. Click the apply tick, go back one, click on format and change it to custom. Mind you, you'll lose the date display with this stanza, I haven't found a way to insert a line break in a way GTK3 can understand it; share it if you do. You can change font size, colour and style at your heart's content.

[EDIT]
For posterity, line break is %n.

[SOLVED] Re: Display seconds in clock

Reply #2
It worked, thanks!

Mind you, you'll lose the date display with this stanza

I modified the string like this:

Code: [Select]
<span color="yellow" size="large" font="Monospace"><b>%a %e/%m %H:%M:%S</b></span>