Ubuntu 20.04: Customize clock format in panel

Thank you for this hint as well

I switched back and forth from these two options that were proposed by olek and your link:

  • using the classic clock applet
  • modifying the new clock format

I managed to apply a custom format to both of them!

But, there is a slight advantage of the classic clock, which is why I switched back to using it:
within custom formats it is possible to use html declarations to make some parts smaller! This was the ultimate solution for me in the past, so I will use it again.

Sadly the configure locations changed, so it took some times to find them out:

Apply custom formats to clock applets

Everything below has to be done in dconf-editor.

New clock (in complete notification applet)

  • Open dconf-editor
  • Go to: /com/canonical/indicator/datetime/
  • Enter your custom format in custom-time-format
  • Change time-format to the value custom

Voilà, your custom format should have been applied!

Classic clock applet

  • Add "Clock" to mate panel
  • Open dconf-editor
  • Go to: /org/mate/panel/objects/
  • Go through all object-X entries, until you find one that has the applet-iid=ClockAppletFactory::ClockApplet
  • Go down to the prefs folder
  • Enter your custom format in custom-format
  • Change format to the string custom

Voilà, your custom format should have been applied!

My absolute overruler custom format

<small>%A, %Y-</small>%m-<b>%d</b> %T, <small>KW%V</small>

Looks like this: Sunday, 2020-06-07 22:58:00, KW23

Links:

3 Likes