Update main.js
This commit is contained in:
@@ -64,12 +64,12 @@ class ScreenRotator {
|
||||
? 0 // Hyprland transform: NORMAL
|
||||
: 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([
|
||||
"hyprctl",
|
||||
"keyword",
|
||||
"monitor",
|
||||
`${monitor.name},transform,${transform}`,
|
||||
"bash",
|
||||
"-c",
|
||||
`hyprctl keyword monitor "${monitor.name},transform,${transform}"`,
|
||||
])
|
||||
|
||||
notify(`Screen rotated to ${rotation}`)
|
||||
|
||||
Reference in New Issue
Block a user