Files
floatbar/extension.ts
2024-06-30 19:14:50 +01:00

21 lines
575 B
TypeScript

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;
}
}