init
This commit is contained in:
commit
6ee32aa715
2 changed files with 28 additions and 0 deletions
17
extension.js
Normal file
17
extension.js
Normal 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
11
metadata.json
Normal 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.com/Jerry/gnome-shell-extension-hide-overview"
|
||||||
|
}
|
Loading…
Reference in a new issue