commit 6ee32aa715f03474aef07128fba2a736657d10a9 Author: Jerry Date: Wed Apr 10 10:03:49 2024 +0800 init diff --git a/extension.js b/extension.js new file mode 100644 index 0000000..dbca944 --- /dev/null +++ b/extension.js @@ -0,0 +1,17 @@ +import { Extension } from 'resource:///org/gnome/shell/extensions/extension.js' +import * as Main from 'resource:///org/gnome/shell/ui/main.js' + +export default class HideOverviewExtension extends Extension { + enable() { + this.handler = Main.layoutManager.connect('startup-complete', () => { + Main.overview.hide() + }) + } + + disable() { + if (this.handler != null) { + Main.layoutManager.disconnect(this.handler) + this.handler = null + } + } +} diff --git a/metadata.json b/metadata.json new file mode 100644 index 0000000..c436e21 --- /dev/null +++ b/metadata.json @@ -0,0 +1,11 @@ +{ + "name": "AutoHide Overview", + "description": "AutoHide Overview on Startup", + "uuid": "hide_overview@isjerryxiao", + "shell-version": [ + "45", + "46" + ], + "version": 1, + "url": "https://git.jerryxiao.cc/Jerry/gnome-shell-extension-hide-overview" +}