From 6ee32aa715f03474aef07128fba2a736657d10a9 Mon Sep 17 00:00:00 2001 From: Jerry Date: Wed, 10 Apr 2024 10:03:49 +0800 Subject: [PATCH] init --- extension.js | 17 +++++++++++++++++ metadata.json | 11 +++++++++++ 2 files changed, 28 insertions(+) create mode 100644 extension.js create mode 100644 metadata.json 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" +}