From b11cf1fdffab15af5efd30af65eaaab74167ad37 Mon Sep 17 00:00:00 2001 From: r454354 <128170542+r454354@users.noreply.github.com> Date: Sat, 1 Apr 2023 18:36:56 +0000 Subject: [PATCH] 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. --- pages/Configuring/Variables.md | 4 ++-- pages/Configuring/Window-Rules.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/Configuring/Variables.md b/pages/Configuring/Variables.md index c4d290a..acf44ef 100644 --- a/pages/Configuring/Variables.md +++ b/pages/Configuring/Variables.md @@ -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 | diff --git a/pages/Configuring/Window-Rules.md b/pages/Configuring/Window-Rules.md index 48007d3..3b1f2d9 100644 --- a/pages/Configuring/Window-Rules.md +++ b/pages/Configuring/Window-Rules.md @@ -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)