Hyprland
signals
event
:(name: string, data: string)
: hyprland ipc eventsurgent-window
:(windowaddress: string)
keyboard-layout
:(keyboardname: string, layoutname: string)
submap
:(name: string)
monitor-added
:(name: string)
monitor-removed
:(name: string)
workspace-added
:(name: string)
workspace-removed
:(name: string)
client-added
:(address: string)
client-removed
:(address: string)
properties
active
:Active
see belowmonitors
:Monitor[]
a Monitor is the object you would get withhyprctl monitors -j
workspaces
:Workspace[]
a Workspace is the object you would get withhyprctl workspaces -j
clients
:Client[]
a Client is the object you would get withhyprctl clients -j
methods
getMonitor
:(id: number) => Monitor
getWorkspace
:(id: number) => Workspace
getClient
:(address: string) => Client
message
:(msg: string) => string
: send a message to the hyprland socketmessageAsync
:(msg: string) => Promise<string>
: async version of message
Active
The active
property is composed by subservices, meaning you connect to any sub prop