Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 7799  / 2 Years ago, wed, february 23, 2022, 11:23:24

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?


More From » gnome

 Answers
6

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 &&    

[#34855] Thursday, February 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
freezidepu

Total Points: 394
Total Questions: 105
Total Answers: 118

Location: Libya
Member since Mon, Dec 7, 2020
3 Years ago
;