Extension working!
This commit is contained in:
parent
4259725632
commit
19c9d8e045
2 changed files with 312 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue