init commit
This commit is contained in:
20
extension.ts
Normal file
20
extension.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import GLib from "gi://GLib";
|
||||
import Gio from "gi://Gio";
|
||||
import Meta from "gi://Meta";
|
||||
import Shell from "gi://Shell";
|
||||
import * as Main from "resource:///org/gnome/shell/ui/main.js";
|
||||
import { Extension } from "resource:///org/gnome/shell/extensions/extension.js";
|
||||
|
||||
export default class MyExtension extends Extension {
|
||||
gsettings?: Gio.Settings;
|
||||
animationsEnabled: boolean = true;
|
||||
|
||||
enable() {
|
||||
this.gsettings = this.getSettings();
|
||||
this.animationsEnabled = this.gsettings!.get_value("padding-inner").deepUnpack() ?? 8;
|
||||
}
|
||||
|
||||
disable() {
|
||||
this.gsettings = undefined;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user