Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

res_mirror

This function creates a mirror which only appears when a specific resolution is active, and is not present otherwise. It is effectively equivalent to:

waywall.listen("resolution", function()
    local width, height = waywall.active_res()

    if width == DESIRED_WIDTH and height == DESIRED_HEIGHT then
        -- make mirror...
    else
        -- destroy mirror...
    end
end)

The mirror will be created with the given options and will only appear on screen while the active resolution is equal to width x height.

Arguments

  • options: table
  • width: number
  • height: number

Return values

  • cancel: function