run initial

This commit is contained in:
Daylin Morgan 2024-10-25 09:43:03 -05:00
parent 7a06a2a28c
commit 952d79d368
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -21,7 +21,11 @@ type
activeWorkspace*: ActiveWorkspace activeWorkspace*: ActiveWorkspace
name: string name: string
id*: int id*: int
transform: int
proc isRotated(m: Monitor): bool =
# 1 -> 90 degrees
m.transform == 1
proc hyprSocketPath(): string = proc hyprSocketPath(): string =
let runtimeDir = getEnv("XDG_RUNTIME_DIR") let runtimeDir = getEnv("XDG_RUNTIME_DIR")
@ -170,6 +174,7 @@ proc watchHyprland*() =
raise newException( raise newException(
HyprlandDefect, "Could not connect to Hyprland IPC UNIX path; is Hyprland running?" HyprlandDefect, "Could not connect to Hyprland IPC UNIX path; is Hyprland running?"
) )
oneShotSwww()
var lastSwww= now() var lastSwww= now()
while true: while true:
var line: string var line: string