Window-Rules: use table for window rules v2 (#761)

This commit is contained in:
Sungyoon Cho 2024-08-28 04:57:50 +09:00 committed by GitHub
parent 3a3f365130
commit e9367d2536
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,21 +67,21 @@ terminals.
For now, the supported fields for V2 are: For now, the supported fields for V2 are:
``` | Field | Description |
class - class regex | -------------- | --------------- |
title - title regex | class:\[regex\] | Windows with `class` matching `regex`. |
initialClass - initialClass regex | title:\[regex\] | Windows with `title` matching `regex`. |
initialTitle - initialTitle regex | initialClass:\[regex\] | Windows with `initialClass` matching `regex`. |
tag - tag name | initialTitle:\[regex\] | Windows with `initialTitle` matching `regex`. |
xwayland - 0/1 | tag:\[name\] | Windows with matching `tag`. |
floating - 0/1 | xwayland:\[0/1\] | Xwayland windows. |
fullscreen - 0/1 | floating:\[0/1\] | Floating windows. |
pinned - 0/1 | fullscreen:\[0/1\] | Fullscreen windows. |
focus - 0/1 | pinned:\[0/1\] | Pinned windows. |
fullscreenstate - [internal] [client]: `*` - any, `0` - none, `1` - maximize, `2` - fullscreen, `3` - maximize and fullscreen | focus:\[0/1\] | Currently focused window. |
workspace - id or name: and name | fullscreenstate:\[internal\] \[client\] | Windows with matching `fullscreenstate`. `internal` and `client` can be `*` - any, `0` - none, `1` - maximize, `2` - fullscreen, `3` - maximize and fullscreen. |
onworkspace - id, name: and name, or workspace selector (see Workspace Rules) | workspace:\[w\] | Windows on matching workspace. `w` can be `id` or `name:string`. |
``` | onworkspace:\[w\] | Windows on matching workspace. `w` can be `id`, `name:string` or `workspace selector`. |
Keep in mind that you _have_ to declare at least one field, but not all. Keep in mind that you _have_ to declare at least one field, but not all.