This commit is contained in:
JerryXiao 2024-04-10 10:03:49 +08:00
commit 6ee32aa715
Signed by: Jerry
GPG key ID: 22618F758B5BE2E5
2 changed files with 28 additions and 0 deletions

17
extension.js Normal file
View file

@ -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
}
}
}

11
metadata.json Normal file
View file

@ -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"
}