diff --git a/pinenote-shell/src/main.js b/pinenote-shell/src/main.js index 93bdd03..f7a916a 100644 --- a/pinenote-shell/src/main.js +++ b/pinenote-shell/src/main.js @@ -61,8 +61,8 @@ class ScreenRotator { const transform = rotation === "landscape" - ? Hyprland.Monitor.Transform.NORMAL - : Hyprland.Monitor.Transform.ROTATE_270_DEG + ? 0 // Hyprland transform: NORMAL + : 3 // Hyprland transform: ROTATE_270_DEG (portrait) // Hyprland expects keyword monitor ,transform, await execAsync([ @@ -231,7 +231,7 @@ function PinenoteShell() { const monitor = focusedMonitor() if (!monitor) return "auto" const t = monitor.transform - return t === Hyprland.Monitor.Transform.NORMAL ? "landscape" : "portrait" + return t === 0 ? "landscape" : "portrait" }) const status = createComputed(() => `Rotation: ${transform()} | Brightness: ${brightnessLevel()}%`)