Did some minor changes to the wiki (#172)

* Added wikipedia links to regex topic.

So that people who don't know much about regex/programming in general can read the regex topic from wikipedia in details.

* Edited no_direct_scanout description

It is very important because many people are having graphical issues with their game and setting no_direct_scanout to true works. See this discord link (https://discord.com/channels/961691461554950145/961694014615208048/1091353694974517349) from the hyprland discord server. See this video - https://0x0.st/HHLn.mp4

* Added the regex cheatsheet link.

Added the regex cheatsheet link to the swallow_regex description box. Users should need to know what are the different types of regexes and how to use them so that they can swallow whatever window they want.
This commit is contained in:
r454354 2023-04-01 18:36:56 +00:00 committed by GitHub
parent 5e20a32754
commit b11cf1fdff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -241,9 +241,9 @@ Described [here](../Keywords#per-device-input-configs).
| animate_mouse_windowdragging | If true, will animate windows being dragged by mouse, note that this can cause weird behavior on some curves | bool | false |
| disable_autoreload | If true, the config will not reload automatically on save, and instead needs to be reloaded with `hyprctl reload`. Might save on battery. | bool | false |
| enable_swallow | Enable window swallowing | bool | false |
| swallow_regex | The *class* regex to be used for windows that should be swallowed (usually, a terminal) | str | \[EMPTY\] |
| swallow_regex | The *class* regex to be used for windows that should be swallowed (usually, a terminal). To know more about the list of regex which can be used [use this cheatsheet](https://github.com/ziishaned/learn-regex/blob/master/README.md). | str | \[EMPTY\] |
| focus_on_activate | Whether Hyprland should focus an app that requests to be focused (an `activate` request) | bool | false |
| no_direct_scanout | Disables direct scanout. Direct scanout attempts to reduce lag when there is only one fullscreen application on a screen (e.g. game) | bool | false |
| no_direct_scanout | Disables direct scanout. Direct scanout attempts to reduce lag when there is only one fullscreen application on a screen (e.g. game). It is also recommended to set this to true if the fullscreen application shows graphical glitches. | bool | false |
| hide_cursor_on_touch | Hides the cursor when the last input was a touch input until a mouse input is done. | bool | true |
| mouse_move_focuses_monitor | Whether mouse moving into a different monitor should focus it | bool | true |
| suppress_portal_warnings | disables warnings about incompatible portal implementations. | bool | false |

View file

@ -13,7 +13,7 @@ windowrule=RULE,WINDOW
```
- `RULE` is a [rule](#rules) (and a param if applicable)
- `WINDOW` is a RegEx, either:
- `WINDOW` is a [RegEx](https://en.wikipedia.org/wiki/Regular_expression), either:
- plain RegEx (for matching a window class);
- `title:` followed by a regex (for matching a window's title)