From 14fc6ca99f1eb969f7ec8edac4e836bdd0f736cc Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 14 Mar 2026 21:35:09 +0800 Subject: [PATCH] docs: add some note message to monitor rule --- docs/configuration/monitors.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/configuration/monitors.md b/docs/configuration/monitors.md index 5501c77f..28ef240b 100644 --- a/docs/configuration/monitors.md +++ b/docs/configuration/monitors.md @@ -48,11 +48,13 @@ monitorrule=name:Values,Parameter:Values,Parameter:Values > **Critical:** 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 extend into positive coordinates. +> **Note:** that "name" is a regular expression. If you want an exact match, you need to add `^` and `$` to the beginning and end of the expression, for example, `^eDP-1$` matches exactly the string `eDP-1`. + ### Examples ```ini # Laptop display: 1080p, 60Hz, positioned at origin -monitorrule=name:eDP-1,width:1920,height:1080,refresh:60,x:0,y:10 +monitorrule=name:^eDP-1$,width:1920,height:1080,refresh:60,x:0,y:10 # Match by make and model instead of name monitorrule=make:Chimei Innolux Corporation,model:0x15F5,width:1920,height:1080,refresh:60,x:0,y:0