Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disabling hot corners in GNOME
const LM = imports.ui.main.layoutManager;
let _updateHotCorners;
function _noop() { }
function _destroyHotCorners() {
LM.hotCorners.forEach(corner => {
if (corner) {
corner.destroy();
}
});
LM.hotCorners = [null];
}
function init() { }
function enable() {
_updateHotCorners = LM._updateHotCorners;
LM._updateHotCorners = _noop;
_destroyHotCorners();
}
function disable() {
LM._updateHotCorners = _updateHotCorners;
LM._updateHotCorners();
}
{
"uuid": "cold-corners@stevencwilliams.gmail.com",
"name": "Cold corners",
"description": "Disable hot corners.",
"shell-version": ["3.30.2"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.