From 7f825b51a6bbb478a81c2084cfd17c3a52a79983 Mon Sep 17 00:00:00 2001 From: Mike Rivnak Date: Sat, 30 Mar 2024 21:06:31 -0400 Subject: [PATCH 1/8] Add $DESC entry (#561) --- pages/Hypr Ecosystem/hyprlock.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/Hypr Ecosystem/hyprlock.md b/pages/Hypr Ecosystem/hyprlock.md index 7e4d66f..690a439 100644 --- a/pages/Hypr Ecosystem/hyprlock.md +++ b/pages/Hypr Ecosystem/hyprlock.md @@ -187,7 +187,8 @@ label { ``` Available variables for `text`: - - `$USER` - username + - `$USER` - username (e.g. linux-user) + - `$DESC` - user description (e.g. Linux User) - `$TIME` - current time (e.g. `13:37`) - `$FAIL` - last pam fail reason - `$ATTEMPTS` - failed attempts From 7b5f391046aeab21020ae490fc0917156daffed2 Mon Sep 17 00:00:00 2001 From: Chenty <78651635+Trap101@users.noreply.github.com> Date: Sun, 31 Mar 2024 02:25:14 +0100 Subject: [PATCH 2/8] Update document mistake with initialClass with added warnings (#563) --- pages/Configuring/Window-Rules.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/Configuring/Window-Rules.md b/pages/Configuring/Window-Rules.md index 366aad8..7e1b719 100644 --- a/pages/Configuring/Window-Rules.md +++ b/pages/Configuring/Window-Rules.md @@ -70,8 +70,8 @@ For now, the supported fields are: ```ini class - class regex title - title regex -initialClass - initialClass regex -initialTitle - initialTitle regex +initialclass - initialClass regex +initialtitle - initialTitle regex xwayland - 0/1 floating - 0/1 fullscreen - 0/1 @@ -83,6 +83,11 @@ onworkspace - id, name: and name, or workspace selector (see Workspace Rules) Keep in mind that you _have_ to declare at least one field, but not all. +{{< callout type=warning >}} +Please beware that `hyprctl clients` display the field as **initialClass** while the WINDOW field in the configuration uses `initialclass`. + +{{< /callout >}} + {{< callout type=info >}} To get more information about a window's class, title, XWayland status or its From 4865c660660f707d588d8ca7167e6ce821185146 Mon Sep 17 00:00:00 2001 From: k26pl Date: Sat, 30 Mar 2024 23:48:01 +0100 Subject: [PATCH 3/8] Change env vars to hyprland format Changes env vars to hyperland format making them copy-pastable into config. QT_QPA_PLATFORM is originally in quotes, i think it is because of bash and ``;`` and works in hypr, but i am not sure. --- pages/Configuring/Environment-variables.md | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/pages/Configuring/Environment-variables.md b/pages/Configuring/Environment-variables.md index 88b04b2..9ebc1fa 100644 --- a/pages/Configuring/Environment-variables.md +++ b/pages/Configuring/Environment-variables.md @@ -41,20 +41,20 @@ environment on traditional Linux distros. ## Toolkit Backend Variables -- `GDK_BACKEND=wayland,x11` - GTK: Use wayland if available, fall back to x11 if +- `env = GDK_BACKEND,wayland,x11` - GTK: Use wayland if available, fall back to x11 if not. -- `QT_QPA_PLATFORM="wayland;xcb"` - Qt: Use wayland if available, fall back to +- `env = QT_QPA_PLATFORM,wayland;xcb` - Qt: Use wayland if available, fall back to x11 if not. -- `SDL_VIDEODRIVER=wayland` - Run SDL2 applications on Wayland. Remove or set to +- `env = SDL_VIDEODRIVER,wayland` - Run SDL2 applications on Wayland. Remove or set to `x11` if games that provide older versions of SDL cause compatibility issues -- `CLUTTER_BACKEND=wayland` - Clutter package already has wayland enabled, this +- `env = CLUTTER_BACKEND,wayland` - Clutter package already has wayland enabled, this variable will force Clutter applications to try and use the Wayland backend ## XDG Specifications -- `XDG_CURRENT_DESKTOP=Hyprland` -- `XDG_SESSION_TYPE=wayland` -- `XDG_SESSION_DESKTOP=Hyprland` +- `env = XDG_CURRENT_DESKTOP,Hyprland` +- `env = XDG_SESSION_TYPE,wayland` +- `env = XDG_SESSION_DESKTOP,Hyprland` XDG specific environment variables are often detected through portals and applications that may set those for you, however it is not a bad idea to set @@ -62,28 +62,28 @@ them explicitly. ## Qt Variables -- `QT_AUTO_SCREEN_SCALE_FACTOR=1` - +- `env = QT_AUTO_SCREEN_SCALE_FACTOR,1` - [(From the Qt documentation)](https://doc.qt.io/qt-5/highdpi.html) enables automatic scaling, based on the monitor's pixel density -- `QT_QPA_PLATFORM=wayland;xcb` - Tell Qt applications to use the Wayland +- `env = QT_QPA_PLATFORM,wayland;xcb` - Tell Qt applications to use the Wayland backend, and fall back to x11 if Wayland is unavailable -- `QT_WAYLAND_DISABLE_WINDOWDECORATION=1` - Disables window decorations on Qt +- `env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1` - Disables window decorations on Qt applications -- `QT_QPA_PLATFORMTHEME=qt5ct` - Tells Qt based applications to pick your theme +- `env = QT_QPA_PLATFORMTHEME,qt5ct` - Tells Qt based applications to pick your theme from qt5ct, use with Kvantum. ## NVIDIA Specific To force GBM as a backend, set the following environment variables: -- `GBM_BACKEND=nvidia-drm` -- `__GLX_VENDOR_LIBRARY_NAME=nvidia` +- `env = GBM_BACKEND,nvidia-drm` +- `env = __GLX_VENDOR_LIBRARY_NAME,nvidia` > See > [Archwiki Wayland Page](https://wiki.archlinux.org/title/Wayland#Requirements) > for more details on those variables. -- `LIBVA_DRIVER_NAME=nvidia` - Hardware acceleration on NVIDIA GPUs +- `env = LIBVA_DRIVER_NAME,nvidia` - Hardware acceleration on NVIDIA GPUs > See > [Archwiki Hardware Acceleration Page](https://wiki.archlinux.org/title/Hardware_video_acceleration) @@ -99,7 +99,7 @@ To force GBM as a backend, set the following environment variables: - `__GL_VRR_ALLOWED` - Controls if Adaptive Sync should be used. Recommended to set as "0" to avoid having problems on some games. -- `WLR_DRM_NO_ATOMIC=1` - use legacy DRM interface instead of atomic mode +- `env = WLR_DRM_NO_ATOMIC,1` - use legacy DRM interface instead of atomic mode setting. Might fix flickering issues. ## Theming Related Variables From b9ec5f4f381c912c8bc5bca4ac1d83323a9878b0 Mon Sep 17 00:00:00 2001 From: Max Walters Date: Sun, 31 Mar 2024 07:27:41 -0400 Subject: [PATCH 4/8] hypridle: fix typo in `restore` (#564) --- pages/Hypr Ecosystem/hypridle.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/Hypr Ecosystem/hypridle.md b/pages/Hypr Ecosystem/hypridle.md index fe29290..e6112b7 100644 --- a/pages/Hypr Ecosystem/hypridle.md +++ b/pages/Hypr Ecosystem/hypridle.md @@ -55,7 +55,7 @@ general { listener { timeout = 150 # 2.5min. on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor. - on-resume = brightnessctl -r # monitor backlight restor. + on-resume = brightnessctl -r # monitor backlight restore. } # turn off keyboard backlight, comment out this section if you dont have a keyboard backlight. From 7f466c8885a384dc6059a7e006708d1c1dc40e8f Mon Sep 17 00:00:00 2001 From: Mr Unhappy Date: Sun, 31 Mar 2024 05:31:03 -0600 Subject: [PATCH 5/8] nvidia: add missing semicolon for nix configuration. (#565) --- pages/Nvidia/_index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index 235b5ef..23689b5 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -160,8 +160,8 @@ For Nix users, the equivalent of the above is boot.kernelParams = [ "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ]; -hardware.nvidia.powerManagement.enable = true +hardware.nvidia.powerManagement.enable = true; # Making sure to use the proprietary drivers until the issue above is fixed upstream -hardware.nvidia.open = false +hardware.nvidia.open = false; ``` From 036195c550c18c91d997f85fb917bbcc0ae28f03 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Sun, 31 Mar 2024 14:42:20 +0300 Subject: [PATCH 6/8] Uncommon tips & tricks: change GIF locations --- pages/Configuring/Uncommon-tips-&-tricks.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pages/Configuring/Uncommon-tips-&-tricks.md b/pages/Configuring/Uncommon-tips-&-tricks.md index a88f510..eadd34a 100644 --- a/pages/Configuring/Uncommon-tips-&-tricks.md +++ b/pages/Configuring/Uncommon-tips-&-tricks.md @@ -20,17 +20,19 @@ Variants are set per layout. {{< callout >}} -The first layout defined in the input section will be the one used for binds by default. +The first layout defined in the input section will be the one used for binds by +default. For example: `us,ua` -> config binds would be e.g. `SUPER, A`, while on `ua,us` -> `SUPER, Cyrillic_ef` -You can change this behavior globally or per-device by setting `resolve_binds_by_sym = 1`. -In that case, binds will activate when the symbol typed matches the symbol specified in the bind. +You can change this behavior globally or per-device by setting +`resolve_binds_by_sym = 1`. In that case, binds will activate when the symbol +typed matches the symbol specified in the bind. -For example: if your layouts are `us,fr` and have a bind for `SUPER, A` you'd need to press the -first letter on the second row while the `us` layout is active and the first letter on the first row -while the `fr` layout is active. +For example: if your layouts are `us,fr` and have a bind for `SUPER, A` you'd +need to press the first letter on the second row while the `us` layout is active +and the first letter on the first row while the `fr` layout is active. {{< /callout >}} @@ -123,7 +125,7 @@ windowrule=windowdance,title:^(Rhythm Doctor)$ Click the GIF below to see a full demo video -[![Demo GIF of Rhythm Doctor](https://cdn.discordapp.com/attachments/810799100940255260/1032843745864986644/ezgif.com-gif-maker18.gif)](https://pool.jortage.com/voringme/misskey/565b9dfb-125f-4ea0-9257-b371cb4c7195.mp4) +[![Demo GIF of Rhythm Doctor](https://pool.jortage.com/voringme/misskey/565b9dfb-125f-4ea0-9257-b371cb4c7195.mp4)](https://pool.jortage.com/voringme/misskey/565b9dfb-125f-4ea0-9257-b371cb4c7195.mp4) ### Shimeji @@ -146,7 +148,7 @@ kill them. {{< /callout >}} -![Demo GIF of Spamton Shimeji](https://media.discordapp.net/attachments/810799100940255260/1032846469855727656/ezgif.com-gif-maker19.gif) +![Demo GIF of Spamton Shimeji](https://github.com/hyprwm/hyprland-wiki/assets/36706276/261afd03-bf41-4513-b72b-3483d43d418c) ## Toggle animations/blur/etc hotkey From 16e8795268d55db1f945288e2e59f610eb2ee918 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Sun, 31 Mar 2024 14:42:20 +0300 Subject: [PATCH 7/8] Uncommon tips & tricks: change GIF locations --- pages/Configuring/Uncommon-tips-&-tricks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/Configuring/Uncommon-tips-&-tricks.md b/pages/Configuring/Uncommon-tips-&-tricks.md index eadd34a..c9961bf 100644 --- a/pages/Configuring/Uncommon-tips-&-tricks.md +++ b/pages/Configuring/Uncommon-tips-&-tricks.md @@ -125,7 +125,7 @@ windowrule=windowdance,title:^(Rhythm Doctor)$ Click the GIF below to see a full demo video -[![Demo GIF of Rhythm Doctor](https://pool.jortage.com/voringme/misskey/565b9dfb-125f-4ea0-9257-b371cb4c7195.mp4)](https://pool.jortage.com/voringme/misskey/565b9dfb-125f-4ea0-9257-b371cb4c7195.mp4) +[![Demo GIF of Rhythm Doctor](https://github.com/hyprwm/hyprland-wiki/assets/36706276/6a3d306e-366e-48df-aec2-5e16bb143625)](https://pool.jortage.com/voringme/misskey/565b9dfb-125f-4ea0-9257-b371cb4c7195.mp4) ### Shimeji From 863af8874cc45dcee25945adc0db2b2df91f9318 Mon Sep 17 00:00:00 2001 From: quinn <141419112+fortunef@users.noreply.github.com> Date: Mon, 1 Apr 2024 04:26:09 +1100 Subject: [PATCH 8/8] Performance: fix grammar (#567) --- pages/Configuring/Performance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/Configuring/Performance.md b/pages/Configuring/Performance.md index afc0384..f6a4950 100644 --- a/pages/Configuring/Performance.md +++ b/pages/Configuring/Performance.md @@ -33,4 +33,4 @@ case, remove it completely. ## My games work poorly, especially proton ones -Use `gamescope`, tends to fix any and all issues with wayland/Hyprland. +Using `gamescope` tends to fix any and all issues with Wayland/Hyprland.