Skip to content

Class SeatList ​

Every seat, sorted by name, as wm.input.seats.

Implements: List<Seat>

  • Hazel puts every input device on one seat, seat0, made when the first device appears.
  • Empty while the config first runs. After a reload the seat is there.

Methods ​

wm.input.seats:name(name: string) -> Seat?name ​

The seat with this name.

  • nil when there is none.
lua
local main_seat = wm.input.seats:name("seat0")
if main_seat then main_seat:focus(window) end