[20.04 Mate] Add Hidden Extras to Top Panel

I'm moving from Mac to the amazing new 20.04 Ubuntu Mate, and thrilled! After exploring some of the other great Themes and options, I settled on Cupertino. Along the way I liked some of the top panel applets in other themes, and couldn't find them in the Cupertino or Contemporary themes. After considerable effort, (guessing the options were "in here somewhere!") I found a trick and am now enjoying several new (apparently old from prior versions) applets.

When I right-click on the top panel, the handy "Add To Panel" option that's in nearly all other Themes doesn't work. I just get the sparse new Preferences list of options. I of course dragged a few useful things to the top panel, but those other applets (like the Clock w/seconds, day & date) were nowhere to be found. Some of the Add To Panel options are uniquely great. To see what I mean, here's the simple Trick I chanced to find:

  1. Right-click on the left-most item on the right side of your top panel.
  2. Make sure "Lock to Panel" is NOT checked, or UNcheck if it is.
  3. Click "Move" and drag that item to the Left, to open up some space.
  4. Now right-click in that new top panel space you just created.
    Bingo!

For whatever reason(s), the familiar Add To Panel option only works in an open area anywhere to the Right of the Left-most top panel item. That area also gives you access to the handy panel Properties options like Size, Hide, other Panels, etc. So I've found it useful to maintain an open area somewhere on the right side for future tweaking.

I'm greatly appreciating all the work that's gone into this slick and quick OS, and hoping this tiny trick may be useful to others who find their way here.

2 Likes

Hi @JohnW,

The reason is simple: your selected panel layout -- Cupertino -- is using global menu applet, which automatically expands to the right side and occupies all free panel area. When you click that area, this applet intercepts your mouse events and prevents underlying panel from showing context menu you are looking for.
I assume your initial panel layout looks similar to this:


You are able to unlock, move or remove any of these applets. Some of them have a three dots area used for interaction, others have these commands embedded in their context menus.

Hope this clarifies the situation

4 Likes

Wow, thanks for the clarification ironfoot! Sadly, I'm only dimly understanding it but happily have it working well. :upside_down_face:

My only teeny quibble now: I'd like to get rid of the new clock that seems to be integrated into one unit with Bluetooth/Network/Sound/Shutdown icons.Screenshot at 2020-05-12 15-37-53
It's easy to just ignore that clock, since the "old" clock I added is in the top-center.

This new clock is default clock starting 19.10 cycle. Any particular reason to remove it and use
an old clock applet?

I didn't find any way to have it look like the old clock I'm using in addition, at the middle of the top panel. Specifically DayOfWeek, Month, Day, and Seconds. Here in COVID lockdown, DayOfWeek is surprisingly helpful. :crazy_face:
Seconds I've used occasionally for years, even on my (ugh) Mac. Life is short - must use every second remaining. :wink:
Clock1.24.0-quoteOld

2 Likes

[UPDATED FOR 21.04]
There are a couple of ways of getting the clock with day, date, etc. The first does not require any additional software and the second is much simpler and is the recommended method for 21.04.

Method 1: Replace the applet with the "old" clock and the "old" indicator.

  1. Right-click on the "Indicator Applet Complete" identified in @ironfoot's illustration.
  2. Uncheck Lock to Panel.
  3. Right-click again and select Remove from Panel.
  4. Right-click on a blank space on the panel and select Add to Panel.
  5. Select Clock from the list and click Add.
  6. Right-click on the clock applet and select Move.
  7. Drag it to the far right end of the panel and press the Enter key to stop moving it.
  8. Right-click on a blank space on the panel and select Add to Panel.
  9. Select Indicator Applet from the list and click Add. (Note: Do not select Indicator Applet Complete.)
  10. Right-click on the left end of the indicator applet and select Move.
  11. Drag it right so that it is just to the left of the clock and press the Enter key to stop moving it.

Once you have both applets in place you can right-click each in turn to lock them so you don't move them accidentally.

Method 2: Modify the existing clock. (Recommended)
This is for Ubuntu MATE 21.04.

This method does not require any additional software or terminal commands to control what appears on the clock indicator. Ubuntu MATE now has settings in the Control Center.

  1. Open the Control Center.
  2. Open the Indicators in the Look and Feel section. This opens Ayatana Indicators Settings.
  3. Select Date and Time in the left pane of the window and the settings for the clock appear in the right pane.
  4. Here you can turn on and off the Year, Month and Date, Day of the Week, and Number of Seconds on the indicator in the panel. You can also modify some setting for the menu that appears when you click on the time in the panel.

This is for Ubuntu MATE 20.04 (and earlier) See below for dconf settings to adjust for 20.10.

This method requires that you install dconf Editor and change the clock's properties ever so slightly.

  1. If you have install "Software" or the "Synaptic" package manager, you can search for dconf Editor and install it graphically. Otherwise open a terminal and type: sudo apt install dconf-editor.
  2. Open dconf Editor from the menu. You will get a scary warning asking you to promise to be careful.
  3. At the top of the application window (in the title bar click the magnifier icon) search for /com/canonical/indicator/datetime/.
  4. Select the two switches "show-date" and/or "show-day" as you wish.
  5. Close dconf Editor.

Some additional settings you might want to adjust:

Ubuntu MATE 20.04

  • com.canonical.indicator.datetime show-date 'true'
  • com.canonical.indicator.datetime show-day 'true'
  • com.canonical.indicator.datetime show-seconds 'true'
  • com.canonical.indicator.datetime time-format '12-hour'

Ubuntu MATE 20.10

  • org.ayatana.indicator.datetime show-day true
  • org.ayatana.indicator.datetime show-time true
  • org.ayatana.indicator.datetime show-seconds true
  • org.ayatana.indicator.datetime time-format 12-hour

For additional details, please see: https://goinglinux.com/articles/ClockFix_en.htm

16 Likes

... and don't forget "show-seconds" toggle as well.

However, this will not give you exactly the same look you had in your old clock applet (comma-separated date and time). If you want that, you have to construct custom date-time format.

This terminal command will tell your clock use custom format:
gsettings set com.canonical.indicator.datetime time-format 'custom'

This provides custom format string:
gsettings set com.canonical.indicator.datetime custom-time-format '%a %b %d, %X'

You may set them via dconf-editor as well.

5 Likes

Cool! :slightly_smiling_face:
I started with Method 1 and immediately messed up when I removed the Ind.Applet. The keyboard indicator applet zapped over to the far-right and I couldn't move or remove it. Futzed with dconf Editor a while with no success but a tiny bit more idea of what's going on. Then finally got rid of it. After that I just started over using the great info shared here so far, to build a less cluttered and rearranged Panel using only the old Add To Panel applets. Later I may drag in some new stuff, put it in the Plank, or just remain content with the sparse simplicity of the old stuff.

Now that it's working well, I'm smiling at how much quicker and easier it probably would've been to use Method 2. But where's the fun in that?! :smirk:

Anyway, thank you for the quick and detailed reply. I'm getting more excited about 20.04 Mate by the minute. :smiley:

Thanks. :slightly_smiling_face:
Had I wisely gone with Method 2 this would've been quite helpful. I'm appreciating how quick the helpful replies are here, and hoping it's not just because everyone else is stuck at home like me. If I ever do go back to the new clock, your config tips will be a great help.

Now on to my next distraction... :wink:

1 Like

Thanks for that @goinglinux ... I can finally have full date & clock again :+1: Screenshot at 2020-05-21 11-06-37
Trough looking at it now, it doesn't show it in correct way for me. Looks like it doesn't take into consideration system preferences. Is it possible to change day and month so it could be like for example Thu 21 May?

BTW it's also possible to do 1 click install Dconf Editor in Welcome - Software Boutique under System Tools.

1 Like

Hi @ele,

for some reason, indicator-datetime does not fully respect your system settings and indeed displays date in [month] [day] format for different locales. I am afraid, the only way to change this is to construct custom date and time format.
In the same dconf section find time-format key and set it to 'custom'.
After that, find custom-time-format key and set it to, for example, '%a %d %b, %H:%M:%S'.
You may learn other format codes from date --help command in your terminal and construct format string suiting your needs.

Cheers

3 Likes

Nope. Not the case. I really wish people would phrase this as Installing dconf-editor to modify this is the recommended option, but if you'd rather do it through the terminal perform these commands:

gsettings get com.canonical.indicator.datetime show-time false
gsettings get com.canonical.indicator.datetime show-day false

No, I do not care how user-unfriendly this sounds. Replying toward me with that is effectively replying to nobody. No additional software is necessary, and the bonus is you can provide this as a script for people to use post-install in the future.

Thank you @ironfoot for providing a third method, via the command line! And like "Method 1" it does not require additional software. Thank you, too, for explaining what each command does rather than encouraging users to blindly copy and paste commands, risking victimization by malicious actors!

For anyone reading, in the future, the reply from @tiox (Brandon Bachman) and thinking that the "Method 2" I outlined above is incorrect, it is not. (The method works for Ubuntu MATE. I tested it before posting. The name of the application to be installed is displayed in the menus as "dconf Editor" and the name of the installed package is "dconf-editor".)

I think that @tiox is attempting to provide a fourth method of displaying additional components in the indicator. (Apparently, in his haste to express his righteous indignation, he forgot to be accurate.)

Unfortunately, simply copying and pasting those commands will not achieve the desired result. The command "gsettings get" does not change a setting. You want to use "gsettings set" instead. Here is what will actually work, along with an explanation of each command:

This terminal command will tell your system to show the day of the week:
gsettings set com.canonical.indicator.datetime show-day true

This one shows the month and date:
gsettings set com.canonical.indicator.datetime show-date true

This one shows the seconds as part of the time:
gsettings set com.canonical.indicator.datetime show-seconds true

Well said, Brandon.

3 Likes

Apologies. In my fervor and lividness I forgot to change get to set. Thank you for aiding my cause.

Apologies if I was seeming indignant. I am just tired of people posting incomplete solutions, and not providing what would be faster for people to just copy and paste. While I do completely understand where @ironfoot and you are coming from with malicious actors and such, generally a helpful answer will also be a truthful answer. Any cause for maliciousness is usually snuffed along with its avatars pretty quickly around here.

Thank you @tiox! I agree that using the command line is faster. Not always as clear to new users, though. That's why I prefer to explain using point-and-click solutions where they will work and are not 5,000 steps long. :grin:

1 Like

gsettings set com.canonical.indicator.datetime custom-time-format '%a %d %b, %H:%M'
Unable to change the date format even by taping the command in the shell... A bug ?

1 Like

Hi @monsieurzik,

this will only work, if time-format key is set to 'custom'.

2 Likes

Already done ... Tried several times

What is the output from these commands?
gsettings get com.canonical.indicator.datetime time-format
gsettings get com.canonical.indicator.datetime custom-time-format

3 Likes

It's OK now. With the commands you ask for, I have understand that i didn't set "time format" on "custom".
It's working like a charm now. Thanks again.

3 Likes