This shows you the differences between two versions of the page.
— |
mate:custom-clock [2020/05/15 16:58] (current) prppedro created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== MATE Clock Applet Customization ====== | ||
+ | |||
+ | Sometimes, you just don't like the standard clock MATE provides. I feel you... GNOME 2 were always a bit bland, so to speak, customization-wise. A blandness which seems to be shared with it's GTK3-compatible sucessor, MATE. As much as I like MATE, I'd like to be able to customize it a bit more. But, hey, GTK3 CSS and dconf-editor is here to help you. | ||
+ | |||
+ | ===== Custom clock format ===== | ||
+ | |||
+ | Seems to be a somewhat recurring question, as I gathered when searching for it. It's really, really quite simple to do. There' | ||
+ | |||
+ | tl;dr: navigate to: '' | ||
+ | |||
+ | Mine, for e.g., is this: '' | ||
+ | |||
+ | ==== Possible gotchas ==== | ||
+ | |||
+ | On my ThinkPad, for some reason (perhaps oddities when carrying over an old Ubuntu MATE home to a Debian Buster installation) changing the '' | ||
+ | |||
+ | Also, sometimes, '' | ||
+ | |||
+ | ==== Quick and Dirty™ Script ==== | ||
+ | |||
+ | < | ||
+ | #!/bin/bash | ||
+ | # Double check whate you are doing... I'm not responsible for | ||
+ | # your cat going into hyperspace when you can't just do simple | ||
+ | # checks before running copypasta scripts from arround the web... | ||
+ | |||
+ | OBJECT=" | ||
+ | FORMAT=" | ||
+ | |||
+ | dconf write org.mate.panel.objects.${OBJECT}.prefs.format custom | ||
+ | dconf write org.mate.panel.objects.${OBJECT}.prefs.custom-format ${FORMAT} | ||
+ | </ | ||
+ | |||
+ | I didn't test this. But should you mess up, it's just a matter of going to the applet preferences and setting it to 12 or 24 hours. | ||
+ | |||
+ | ===== CoLoRS and fonts ===== | ||
+ | |||
+ | < | ||
+ | SUPERSONIC! | ||
+ | --- Sonic, The Hedgehog, prolly | ||
+ | </ | ||
+ | |||
+ | Sometimes you want your clock to be a little more colorful or, simply, to use a different font other than your system' | ||
+ | |||
+ | GTK3 has a neat feature: you can edit some UI elements by using CSS, which is rather useful. It's possible to use [[https:// | ||
+ | |||
+ | As for the clock, I had the following lines on my '' | ||
+ | < | ||
+ | # | ||
+ | { | ||
+ | background-color: | ||
+ | color: lime; | ||
+ | font-size: 9pt; | ||
+ | font-family: | ||
+ | font-weight: | ||
+ | } | ||
+ | </ | ||
+ | (please don't fight me over the bracket thing) | ||
+ | |||
+ | Which gives you a rather ugly looking clock (given you have OCR A Std installed): | ||
+ | {{: | ||
+ | |||
+ | But, obviously, you can tweak it up. It was working here until some weaks ago when I, after installing Debian Bullseye (Testing), switched back to MATE and found this old ugly piece of config. I carried over some installations. | ||
+ | |||
+ | |||
+ | |||