Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Customizable fonts and a multiline display are why I like the orage clock applet in XFCE. Currently running Mate in Fedora Rawhide. Thought I'd try something like
Code:
%a %d-%b\n%R:%S
as the format, but every time I attempt to modify the Mate clock format, the clock applet crashes
Solving this was not intuitive but I did stumble across the solution.
The file /usr/share/glib-2.0/schemas/org.mate.panel.applet.clock.gschema.xml provided clues.
* Open dconf-editor.
* Open org.mate.panel.objects.clock.prefs.
* Manually change the format key to custom.
Without using the custom format, trying to otherwise modify the clock display is futile. The GUI for the clock only supports the 12-hour and 24-hour formats, but as explained in the gschema.xml file, there also are the internet, unix, and custom formats.
After changing the dconf format key to custom, any changes to the custom-format key will occur in real-time (immediately). The options to use are explained in the strftime man page.
I used the following string:
Code:
<b>%l:%M %P</b>%n%a %b %e
This custom format places the time in bold in the first row, the %n option introduces a newline character, and the date is placed in the clock's second row. Like this:
Code:
11:52 pm
Tue Nov 25
I wasn't quite finished. I needed to change the font size.
I pulled up this thread (but couldn't seethe whole thing), went to dconf-editor to take another stab at changing the format, put in my desired format (to no effect), then thought, maybe if I change the format entry from 24-hour to custom it'll work. I did it, it works, then I scrolled down the page and saw upnort's response. Now I need to try modifying .gtkrc
After couple of hours I've managed to find a workaround. I will try to describe it step by step.
IMPORTANT !!! The workaround is tested under "debian wheezy" only. The names of the files or directories may vary depending on the distro. !!!
Before making any changes, please backup all the files that you are going to modify in this workaround.
-- All the commands below are execute with user root.
Step 1:
Go to "/usr/share/glib-2.0/schemas/" and edit the file named "mate-debian.gschema.override" (for your distro, the name of the file may vary) adding the following code:
Step 1:
Go to "/usr/share/glib-2.0/schemas/" and edit the file named "mate-debian.gschema.override" (for your distro, the name of the file may vary) adding the following code:
As mentioned by others earlier, there is no need to modify /usr/share/glib-2.0/schemas/... (which will not survive next update of the clock applet). Just do the same as you suggested in "dconf-editor" run as a regular user (not root).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.