How to modify Gnome-Shell animations?
I use docky in Gnome-Shell and it's annoying that when I minimise a window, it goes up to the top left corner. I know mutter isn't that customisable but is it possible to get a minimise effect similar to that of Cinnamon, here the window just shrinks and disappears? Thanks
You can't simply change the animations. I had a time when I wanted to do that. If you want to change the animations for gnome-shell. You'll have to change the code for the window manager itself. I know it sucks.
example> sudo vi /usr/share/gnome-shell/js/ui/windowManager.js
find method
_minimizeWindow : function(shellwm, actor) { ...
and.. you can see that
xDest = monitor.x;
yDest = monitor.y;
if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL)
xDest += monitor.width;
xScale = 0;
yScale = 0;
change like this!
xDest = window.x;
yDest = window.y;
xScale = 1;
yScale = 0;
roll up window animation ^^
:: Warning! ::
If your syntax is wrong, you may break your GUI completely. In that case, you have to use Alt+Ctrl+F1 and rollback.
You need to modify file /usr/share/gnome-shell/js/ui/windowManager.js
The function you're looking for is WindowManager's _minimizeWindow
.
Changing xDest
and yDest
properly will meet your requirement, hopefully.