init commit

This commit is contained in:
2024-06-30 19:14:50 +01:00
commit 48c0f82593
8 changed files with 158 additions and 0 deletions

20
extension.ts Normal file
View 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;
}
}