gnome-shell-extension-hide-.../extension.js

18 lines
509 B
JavaScript
Raw Permalink Normal View History

2024-04-10 10:03:49 +08:00
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
}
}
}