Update main.js

This commit is contained in:
2026-07-13 15:10:02 +02:00
parent 888005f2ac
commit 95e4e4d545
+5 -5
View File
@@ -64,12 +64,12 @@ class ScreenRotator {
? 0 // Hyprland transform: NORMAL ? 0 // Hyprland transform: NORMAL
: 3 // Hyprland transform: ROTATE_270_DEG (portrait) : 3 // Hyprland transform: ROTATE_270_DEG (portrait)
// Hyprland expects keyword monitor <name>,transform,<value> // Hyprland keyword monitor <name>,transform,<value>
// Executed as a shell command so the comma-separated argument is preserved.
await execAsync([ await execAsync([
"hyprctl", "bash",
"keyword", "-c",
"monitor", `hyprctl keyword monitor "${monitor.name},transform,${transform}"`,
`${monitor.name},transform,${transform}`,
]) ])
notify(`Screen rotated to ${rotation}`) notify(`Screen rotated to ${rotation}`)