run initial
This commit is contained in:
parent
7a06a2a28c
commit
952d79d368
1 changed files with 5 additions and 0 deletions
|
@ -21,7 +21,11 @@ type
|
|||
activeWorkspace*: ActiveWorkspace
|
||||
name: string
|
||||
id*: int
|
||||
transform: int
|
||||
|
||||
proc isRotated(m: Monitor): bool =
|
||||
# 1 -> 90 degrees
|
||||
m.transform == 1
|
||||
|
||||
proc hyprSocketPath(): string =
|
||||
let runtimeDir = getEnv("XDG_RUNTIME_DIR")
|
||||
|
@ -170,6 +174,7 @@ proc watchHyprland*() =
|
|||
raise newException(
|
||||
HyprlandDefect, "Could not connect to Hyprland IPC UNIX path; is Hyprland running?"
|
||||
)
|
||||
oneShotSwww()
|
||||
var lastSwww= now()
|
||||
while true:
|
||||
var line: string
|
||||
|
|
Loading…
Reference in a new issue