I wanted to do the same but with frippery bottom panel, instead of the dock. The concept is the same though. I think you can edit this file:
/usr/share/gnome-shell/js/ui/windowManager.js
I tried pinpointing the effect but the only thing I find here is this:
/* scale window down to 0x0.
* maybe TODO: get icon geometry passed through and move the window towards it?
*/
this._minimizing.push(actor);
let primary = Main.layoutManager.primaryMonitor;
let xDest = primary.x;
if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL)
xDest += primary.width;
Tweener.addTween(actor,
{ scale_x: 0.0,
scale_y: 0.0,
x: xDest,
y: 0,
time: WINDOW_ANIMATION_TIME,
transition: 'easeOutQuad',
onComplete: this._minimizeWindowDone,
onCompleteScope: this,
onCompleteParams: [shellwm, actor],
onOverwrite: this._minimizeWindowOverwritten,
onOverwriteScope: this,
onOverwriteParams: [shellwm, actor]
});
},
If there were any other transitions, maybe it would be possible to substitute it. I could even settle for a fadeout transition. I just don't know where these variables are specified. I think the important lines are x: xDest, , y: 0, and transition: 'easeOutQuad',
If there's anybody willing to add to this or correct it, please help.
It does not look to me like there is a way to enable notifications for this, at least not if you're using Unity.
However, you can set sounds to play whenever you receive a message under Edit > Preferences > Sounds:
![Screenshot of Empathy Preferences window](https://i.stack.imgur.com/hXl0v.png)
However, you can have notifications displayed (whether you like it or not) if you use Empathy through GNOME Shell without your chat window being focused. A notification will appear at the bottom of the screen, showing the messages and even allowing you to type a reply.
I realize this amounts to my answer basically being "use sounds instead or switch your session", but that's the best I can come up with.
Best Answer
There is a tweaking tool just for this purpose. However, it seems to involve installing a different version of
notify-osd
. This is from the link above: