HL.API

class HL.API

Root Hyprland Lua API object.

The global variable hl is an instance of HL.API. Public functions exposed on HL.API are documented under the names users call in config files, such as hl.monitor(), hl.bind(), and hl.config().

hl.monitor({
    output = "DP-1",
    mode = "2560x1440@60",
    position = "0x0",
    scale = 1,
})

Configuration

Keybinds and dispatch

Queries

Events and runtime

Namespaces

See also

HL.MonitorSpec

Example input schema type used by hl.monitor().

HL.Monitor

Example runtime object returned by monitor query functions.