21. October 2011

Disabling hot-corner effect in Gnome 3

When using Gnome 3, one can access the dashboard by moving the cursor to the top-left corner of the screen. As it turns out, I always kept accidentally moving the cursor to this “hot corner”, thereby opening the dashboard involuntarily. Here is a small hack that disables this hot-corner effect. You are still able to show the dashboard by activating the “super” key.

At least in for the Gnome shell in version 3.2.0-2 under Arch linux, edit the file /usr/share/gnome-shell/js/ui/panel.js. Find the following part of the code

 578         this._hotCorner = new Layout.HotCorner();
 579         container.add_actor(this._hotCorner.actor);

and change it such that

 578         this._hotCorner = new Layout.HotCorner();
 579         // container.add_actor(this._hotCorner.actor);

Restart the Gnome shell by entering “r” on Alt-F2 dialog, or log in again in order to make the change take effect. The dashboard should no longer be shown when hovering the cursor in the top-left corner.