Extension working!

This commit is contained in:
Henry Hiles 2025-08-10 22:29:19 -04:00
commit 19c9d8e045
No known key found for this signature in database
2 changed files with 312 additions and 6 deletions

View file

@ -1,5 +1,5 @@
import { Extension } from "resource:///org/gnome/shell/extensions/extension.js"
import Gio from "gi://Gio"
import { setMonitorTransform } from "./monitorDBusUtils.js"
export default class AutoRotate extends Extension {
_listenerId?: number
@ -13,11 +13,7 @@ export default class AutoRotate extends Extension {
global.display.get_monitor_in_fullscreen(index)
) != -1
const { Meta } = imports.gi;
const monitorManager = Meta.MonitorManager.;
if (isFullscreen) {
} else {
}
setMonitorTransform(isFullscreen ? 1 : 0)
}
)
}