6

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

6

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.

3

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? – Muriuki David Jul 5 '15 at 15:41
2

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.

0

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

https://extensions.gnome.org/extension/277/impatience/

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.