Skip to main content
MangoWCMangoWC
Configuration

Monitors

Manage display outputs, resolution, scaling, and tearing.

Monitor Rules

You can configure each display output individually using the monitorrule keyword.

Syntax:

monitorrule=name,mfact,nmaster,layout,transform,scale,x,y,width,height,refreshrate

Parameters

ParameterDescription
nameThe output name (e.g., eDP-1, HDMI-A-1). Use wlr-randr to find these.
mfactMaster area factor (e.g., 0.55).
nmasterNumber of master windows.
layoutDefault layout for this monitor (e.g., tile, scroller).
transformScreen rotation/flip (see table below).
scaleUI Scale factor (e.g., 1, 1.5).
x, yPosition coordinates.
width, heightResolution width and height.
refreshrateRefresh rate in Hz.

Transform Values

ValueRotation
0Normal
190°
2180°
3270°
4-7Flipped variations

Critical: XWayland & Coordinates

If you use XWayland applications, never use negative coordinates for your monitor positions. This is a known XWayland bug that causes click events to malfunction. Always arrange your monitors starting from 0,0 and extending into positive coordinates.

Examples

# Laptop display: 1080p, 60Hz, no rotation
monitorrule=eDP-1,0.55,1,tile,0,1,0,0,1920,1080,60

# External monitor: 1440p, 144Hz, positioned to the right
monitorrule=HDMI-A-1,0.55,1,tile,0,1,1920,0,2560,1440,144

Tearing (Game Mode)

Tearing allows games to bypass the compositor's VSync for lower latency.

  1. Enable Globally:
    allow_tearing=1
  2. Enable per Window: Use a window rule to force tearing for specific games.
    windowrule=force_tearing:1,title:Counter-Strike 2

Power Management

You can control monitor power using the mmsg IPC tool.

# Turn off
mmsg -d disable_monitor,eDP-1

# Turn on
mmsg -d enable_monitor,eDP-1

# Toggle
mmsg -d toggle_monitor,eDP-1

On this page