Ubuntu – Can the Gnome 3.6 notification area be shrinked

gnome

I find the GNOME Shell 3.6 changes to the message tray irritating. Is there a way to switch the message tray to the old model or to at least shrink the items and stop it from pushing the entire desktop when being summoned?

Best Answer

The new design makes the tray unusable for many apps like CherryTree, Deluge, etc. that have tray icons, as you have to wait one long second for each access! And if, by chance, the cursor of your mouse touches the desktop bottom for just a second, you'll see a nasty movement. I don't know where the gnome developers want to go with such "innovations".

However, you could change the tray behavior by editing /usr/share/gnome-shell/js/ui/messageTray.js. I changed TRAY_DWELL_TIME to 50 ms and set the hot zone to the old right bottom corner by changing the line which reads let shouldDwell = ... to:

let shouldDwell = (x >= monitor.x && x == monitor.x + monitor.width - 1 &&

This makes the tray usable again but I didn't find a way for preventing that upward movement.

EDIT (Thanks to @6ahodir):

To prevent upward movement of the desktop change the same file (/usr/share/gnome-shell/js/ui/messageTray.js) and update the following line in the _showDesktopClone() function:

{ y: -this.actor.height,

to this:

{ y: 0,

In case you want to remove the messageTray,

let shouldDwell = (x >= monitor.x + monitor.width && x <= monitor.x + monitor.width + 1 &&    
Related Question