Saturday, June 11, 2011

Re-arrange AppIndicators in Ubuntu Indicator Applet

Till now, you can't move AppIndicators in Ubuntu so you can't re-arrange them to your likings. However, there is a hardcore method by editing some configuration files.

Edit /usr/share/indicator-application/ordering-override.keyfile:
(Note that editing this file would make the changes for all users on your PC. If you want to do it for a single user only, move the above mentioned file to ~/.local/share/indicators/application/ and make the changes there. The directories might not be there under the ~/.local/share directory and you might need to create new ones.)

gksudo gedit /usr/share/indicator-application/ordering-override.keyfile

You would see a file similar to this.

[Ordering Index Overrides]

The order is from right to left, so 'nm-applet=1' means that it would be the first applet to show on the right and the others ascending to the left.

I've re-arranged a few AppIndicators as you can see in the screenshot above. 'syspeek' is at '1', then 'nm-applet' and then the 'classicmenu-appindicator'.

[Ordering Index Overrides]

If you don't know the name of a certain AppIndicator and still want to re-locate it, run this command all-at-once in the Terminal:

dbus-send --type=method_call --print-reply \
--dest=com.canonical.indicator.application \
/com/canonical/indicator/application/service \
com.canonical.indicator.application.service.GetApplications | grep "object path"

You would see an output similar to this:

object path "/org/ayatana/NotificationItem/transmission/Menu"
object path "/org/ayatana/NotificationItem/classicmenu_indicator/Menu"
object path "/org/ayatana/NotificationItem/nm_applet/Menu"
object path "/org/ayatana/NotificationItem/syspeek/Menu"

In this output, 'transmission, classicmenu_indicator, nm_applet, syspeek' are the names of those AppIndicators currently running. For those which have got an 'underscore' in their name, you would have to replace it with a minus for the 'ordering-override.keyfile', e.g. 'nm_applet' would become 'nm-applet'.

Related Posts:

Appearance , Indicator , Unity