diff --git a/pinenote-shell/src/main.js b/pinenote-shell/src/main.js index f7a916a..b69f6d3 100644 --- a/pinenote-shell/src/main.js +++ b/pinenote-shell/src/main.js @@ -64,12 +64,12 @@ class ScreenRotator { ? 0 // Hyprland transform: NORMAL : 3 // Hyprland transform: ROTATE_270_DEG (portrait) - // Hyprland expects keyword monitor ,transform, + // Hyprland keyword monitor ,transform, + // 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}`)