-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// -*- mode: gnome-shell -*- | ||
|
||
var Meta = imports.gi.Meta; | ||
var Clutter = imports.gi.Clutter; | ||
var St = imports.gi.St; | ||
var Main = imports.ui.main; | ||
var Shell = imports.gi.Shell; | ||
|
||
// Extension local imports | ||
var Extension, Me, Tiling, Utils, App, Keybindings, Examples; | ||
|
||
function init() { | ||
// Runs _only_ once on startup | ||
|
||
// Initialize extension imports here to make gnome-shell-reload work | ||
Extension = imports.misc.extensionUtils.getCurrentExtension(); | ||
Me = Extension.imports.user; | ||
Tiling = Extension.imports.tiling; | ||
Utils = Extension.imports.utils; | ||
Keybindings = Extension.imports.keybindings; | ||
Examples = Extension.imports.examples; | ||
App = Extension.imports.app; | ||
} | ||
|
||
function enable() { | ||
// Runs on extension reloads, eg. when unlocking the session | ||
|
||
Tiling.defwinprop({ | ||
wm_class: "gnome-control-center", | ||
scratch_layer: true, | ||
}); | ||
|
||
Tiling.defwinprop({ | ||
wm_class: "org.gnome.Shell.Extensions", | ||
scratch_layer: true, | ||
}); | ||
|
||
Tiling.defwinprop({ | ||
wm_class: "gnome-tweaks", | ||
scratch_layer: true, | ||
}); | ||
} | ||
|
||
function disable() { | ||
// Runs on extension reloads eg. when locking the session (`<super>L). | ||
} |