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 failed to mention when changes take effect. Reboot or logout, then login? Jul 5 '15 at 15:41

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.


There is a shell extension for changing some aspects of it :


but not the roll up speed

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.