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
|
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
|
||||||
|
|
Loading…
Reference in a new issue