Showing posts with label appmenu. Show all posts
Showing posts with label appmenu. Show all posts

Wednesday, October 28, 2015

Unity Global Menu Can Now Be Disabled For Individual Applications [Ubuntu 14.04 Trusty Tahr]

After a recent update in Ubuntu 14.04 Trusty Tahr, it's possible to whitelist or blacklist individual applications from using the Ubuntu AppMenu (global menu).

These settings are accessible via Dconf-editor, under  com > canonical > unity-gtk-module.

Unity blacklist appmenu

To blacklist an application from using the Unity global menu in Ubuntu 14.04, install dconf-editor:
sudo apt-get install dconf-editor

Then open Dconf Editor, navigate to com > canonical > unity-gtk-module and add the class of the application(s) you want under "blacklist" or "whitelist". After adding some application(s) to the blacklist or whitelist, restart that application(s) or log out and log back in.

Example 1: to blacklist Gedit, add the following under com > canonical > unity-gtk-module > blacklist:
['gedit']

Example 2: to blacklist Gedit, Nemo and Audacious, add the following under com > canonical > unity-gtk-module > blacklist:
['gedit', 'nemo', 'audacious']

In the same way you can force applications to use the global menu by adding them under "whitelist". Applications that are blacklisted by default include: Eclipse, Acroread, Emacs and Freeciv.

To find out the window class (which you must add under "blacklist" or "whitelist"), use the following command in a terminal:
xprop | grep CLASS
Then, click on the application you want to blacklist or whitelist and the window class should be displayed in the terminal.
Read more »

Tuesday, October 20, 2015

Ubuntu 14.04 Gets Locally Integrated Menus (LIM)

Ubuntu 14.04 Trusty Tahr: After getting new GTK3 CSS themed window decorations and other interesting changes this week, Unity has received yet another new feature: locally integrated menus, or LIM. 

Ubuntu locally integrated menus lim

Locally integrated menus are displayed in the window decorations for unmaximized windows, instead of the default Unity approach which is to display the menu on the top panel. There is one thing that the default Unity menu and LIM have in common: both are displayed on mouse over and there's no option to make the menu permanently visible, at least not yet.

As for maximized windows, the menu continues to be displayed on the top panel when using LIM.

Ubuntu locally integrated menus lim

This type of menu was first announced at the beginning of 2012 and was supposed to be added to Ubuntu 12.04 but it was subsequently delayed until now, when this feature finally landed in Ubuntu 14.04 Trusty Tahr, though it's a bit different: instead of a menu button, the menus are displayed directly in the titlebar.

LIM is is not enabled by default in Ubuntu 14.04 for now, but it can easily be enabled via System Settings > Appearance, on the Behavior tab:

Ubuntu locally integrated menus lim

However, according to Marco Trevisan (the developer behind this feature), LIM might become default for Ubuntu 14.04, depending on community feedback:

"As this is an LTS release, before setting this menu mode as the default we wanted to have some community feedback."

Some LIM-related settings such as the click movement threshold or the double click wait are not available in System Settings but can be found in Dconf-editor, under com > canonical > unity > integrated-menus.

Besides LIM, another important set of changes landed in Unity, for HiDPI support. Since I can't test this (I don't have a HiDPI monitor), I'm not sure how well HiDPI is currently supported in Unity and if more changes are required for a proper HighDPI experience.

This update should be available to all Ubuntu 14.04 users in a few minutes.
Read more »

Monday, October 19, 2015

Unity To Get An Option To Always Show The Menus [Ubuntu 15.04 Vivid Vervet]

Unity developer +Marco Trevisan is working on some tweaks for Ubuntu 15.04 Vivid Vervet and among them, there's a fix for a three year old bug related to Unity's menus. 

Marco's work involves adding an option to always show the Unity menus (in Unity, the menus are currently displayed on mouseover). Furthermore, this option will work with both the regular Appmenu / global menu, displayed on the top Unity panel, as well as LIM (locally integrated menus), displayed in the application titlebar:

Ubuntu 15.05 Vivid Vervet Menu always visible

In the current implementation, the option to always show the menu is available via Dconf-Editor (com > canonical > unity > always-show-menus) and I don't know if it will be integrated in System Settings, but I'm sure that applications like Unity Tweak Tool will get an option to make this easier to access and configure.

Here's what the "always-show-menus" key description says:

When this is enabled, the application menus will be always shown (on the window decoration or in the unity panel, depending whether integrated menus are enabled), otherwise they will be shown only when the mouse cursor is over the relative mouse area.

The option to make the Unity menus always visible didn't land in Ubuntu 15.04 Vivid Vervet yet (I installed Unity from Marco's branch for the screenshot above), but Marco's branch was proposed for merging, and it will probably make it into Vivid soon.
Read more »

Friday, October 16, 2015

Always Show Menus Unity Feature Lands In Ubuntu 15.04 Vivid Vervet

The option to always show the Unity menus, implemented by +Marco Trevisan, has landed in Ubuntu 15.04 Vivid Vervet.

As you probably know, in the current stable Ubuntu releases (12.04, 14.04 and 14.10), the Unity (global) menus are displayed on mouseover for both the default menu that's displayed on the top Unity panel and LIM (locally integrated menu), which is displayed in the application titlebar.

With Ubuntu 15.04, there's a new option (not enabled by default) which allows setting the Unity menus to always be visible:

Unity always-show-menus Ubuntu 15.04 Vivid Vervet

This option can be changed (at least for now, this is the only way) via Dconf-Editor, by going to com > canonical > unity and enabling "always show menus".

Right now, you need to restart Unity after changing the menu behavior (to restart Unity, press ALT + F2 and enter "unity" or log out and log back in) but I think this is a bug (I reported it here) because I don't remember this being required when I first tested the "always show menus" feature about 3-4 weeks ago (it was in a separate branch and not available by default in Ubuntu 15.04 back then), especially since right now, in Ubuntu 15.04 Vivid Vervet, you must also restart Unity if you want to switch to LIM, which is not the case in Ubuntu 14.04 or 14.10. But Ubuntu 15.04 Vivid Vervet is still in alpha so bugs are to be expected.

Below you can watch a quick video I've recorded under Ubuntu 15.04 Vivid Vervet (VirtualBox), demonstrating the new "always show menus" Unity feature:


(direct video link; for more videos, subscribe to our YouTube channel)

Besides this feature, the latest Unity update in Vivid also brings a fix for using Dash and HUD on top of full-screen applications (as an example, until now, you couldn't open HUD or bring up the Dash when using Firefox in full-screen).

If you're using Ubuntu 15.04 Vivid Vervet, make sure you update to Unity version "7.3.1+15.04.20150115-0ubuntu1" to be able to use this new feature. Note that if you're not using the main repositories mirror, it may take a while until the new version is available for you.

In other Unity menus-related news, JAyatana is now installed by default in Ubuntu 15.04 Vivid Vervet, meaning that the next Ubuntu release will ship with Java Swing appmenu (global menu) support by default.
Read more »

Tuesday, October 6, 2015

Get Unity Global Menu / HUD Support For Java Swing Applications With JAyatana

Java Swing Ayatana is a project that brings Ubuntu global menu (AppMenu) and HUD support for Java Swing applications.

JAyatana version 2 was released recently, getting support for Ubuntu 13.10 along with a PPA for easy installation. Update: the PPA now supports Ubuntu 14.04 and 14.10.

Using this, you'll get Unity AppMenu and HUD support for applications such as: NetBeans IDE, IntelliJ IDEA, Android Studio, jDownloader and so on.

The current version has a small display bug with IntelliJ Idea and Android Studio - the bug was fixed minutes after publishing this post, thanks to danjaredg for the quick fix!

Here's an IntelliJ IDEA screenshot using a global menu under Unity (Ubuntu 14.04):

Intellij idea global menu unity

And Netbeans IDE:

Netbeans IDE global menu

And of course, HUD works too:

IntelliJ IDEA HUD

Note that this won't work for Eclipse because it's a SWT application (update: in Ubuntu 14.04, Eclipse has HUD / AppMenu support by default). If you want Unity AppMenu / HUD support for Eclipse IDE, see the instructions HERE for Ubuntu 13.04 and older or, for Ubuntu 14.04, use the new unity-gtk-module dconf option to whitelist Eclipse. Unfortunately the old method to enable the Eclipse AppMenu doesn't work properly in Ubuntu 13.10.


Get global menu / HUD support for Java Swing applications using Java Ayatana


Java Swing Ayatana is available in a PPA for Ubuntu 14.04 and 14.10. Add the PPA and install it using the following commands:
sudo add-apt-repository ppa:danjaredg/jayatana
sudo apt-get update
sudo apt-get install jayatana

Once installed, log out and log back in.

If you want to checkout the source, report bugs and so on, see the Java Swing Ayatana page @ Google Code.


How to rever the changes


1. Because files in /etc/ are only removed when the package that installs them is purged, to revert the changes you'll have to purge the packages installed from the PPA using the following command:
sudo apt-get --purge remove jayatana libjayatana libjayatanaag libjayatana-java libjayatanaag-java

2. And finally, log out and log back in.

seen @ +Bademus l.
Read more »