forked from micheleg/dash-to-dock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextension.js
43 lines (29 loc) · 807 Bytes
/
extension.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Me = imports.misc.extensionUtils.getCurrentExtension();
const Convenience = Me.imports.convenience;
const Intellihide = Me.imports.intellihide;
const DockedDash = Me.imports.dockedDash;
let settings;
let intellihide;
let dock;
function init() {
}
function show(){
dock.disableAutoHide();
}
function hide(){
dock.enableAutoHide();
}
function enable() {
settings = Convenience.getSettings('org.gnome.shell.extensions.dash-to-dock');
dock = new DockedDash.dockedDash(settings);
intellihide = new Intellihide.intellihide(show, hide, dock, settings);
}
function disable() {
intellihide.destroy();
dock.destroy();
settings.run_dispose();
dock=null;
intellihide=null;
settings = null;
}