mirror of
http://100.103.83.12:3003/fegger/pineNoteShell.git
synced 2026-09-17 11:32:44 +00:00
Update main.js
This commit is contained in:
@@ -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}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user