Hyprland: QtObject [singleton]
import Quickshell.Hyprland
Properties
- eventSocketPath: string
- focusedMonitor: HyprlandMonitor
- monitors: ObjectModel<HyprlandMonitor>
- requestSocketPath: string
- workspaces: ObjectModel<HyprlandWorkspace>
Functions
- void dispatch(request: string)
- HyprlandMonitor monitorFor(screen: ShellScreen)
- void refreshMonitors()
- void refreshWorkspaces()
Signals
- rawEvent(event: HyprlandEvent)
Property Details
eventSocketPath: string
Path to the event socket (.socket2.sock)
focusedMonitor: HyprlandMonitor
The currently focused hyprland monitor. May be null.
monitors: ObjectModel<HyprlandMonitor>
All hyprland monitors.
requestSocketPath: string
Path to the request socket (.socket.sock)
workspaces: ObjectModel<HyprlandWorkspace>
All hyprland workspaces.
Function Details
Execute a hyprland dispatcher.
HyprlandMonitor monitorFor(screen: ShellScreen)
Get the HyprlandMonitor object that corrosponds to a quickshell screen.
void refreshMonitors()
Refresh monitor information.
Many actions that will invalidate monitor state don’t send events, so this function is available if required.
void refreshWorkspaces()
Refresh workspace information.
Many actions that will invalidate workspace state don’t send events, so this function is available if required.
Signal Details
rawEvent(event: HyprlandEvent)
Emitted for every event that comes in through the hyprland event socket (socket2).
See Hyprland Wiki: IPC for a list of events.