Merge branch 'hyprwm:main' into main

This commit is contained in:
k26pl 2024-03-31 22:57:15 +02:00 committed by GitHub
commit 56f58583ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 38 additions and 30 deletions

View file

@ -41,20 +41,20 @@ environment on traditional Linux distros.
## Toolkit Backend Variables ## 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. 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. 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 `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 variable will force Clutter applications to try and use the Wayland backend
## XDG Specifications ## XDG Specifications
- `XDG_CURRENT_DESKTOP=Hyprland` - `env = XDG_CURRENT_DESKTOP,Hyprland`
- `XDG_SESSION_TYPE=wayland` - `env = XDG_SESSION_TYPE,wayland`
- `XDG_SESSION_DESKTOP=Hyprland` - `env = XDG_SESSION_DESKTOP,Hyprland`
XDG specific environment variables are often detected through portals and 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 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 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 [(From the Qt documentation)](https://doc.qt.io/qt-5/highdpi.html) enables
automatic scaling, based on the monitor's pixel density 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 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 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. from qt5ct, use with Kvantum.
## NVIDIA Specific ## NVIDIA Specific
To force GBM as a backend, set the following environment variables: To force GBM as a backend, set the following environment variables:
- `GBM_BACKEND=nvidia-drm` - `env = GBM_BACKEND,nvidia-drm`
- `__GLX_VENDOR_LIBRARY_NAME=nvidia` - `env = __GLX_VENDOR_LIBRARY_NAME,nvidia`
> See > See
> [Archwiki Wayland Page](https://wiki.archlinux.org/title/Wayland#Requirements) > [Archwiki Wayland Page](https://wiki.archlinux.org/title/Wayland#Requirements)
> for more details on those variables. > 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 > See
> [Archwiki Hardware Acceleration Page](https://wiki.archlinux.org/title/Hardware_video_acceleration) > [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 - `__GL_VRR_ALLOWED` - Controls if Adaptive Sync should be used. Recommended to
set as "0" to avoid having problems on some games. 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. setting. Might fix flickering issues.
## Theming Related Variables ## Theming Related Variables

View file

@ -33,4 +33,4 @@ case, remove it completely.
## My games work poorly, especially proton ones ## 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.

View file

@ -20,17 +20,19 @@ Variants are set per layout.
{{< callout >}} {{< 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` For example: `us,ua` -> config binds would be e.g. `SUPER, A`, while on `ua,us`
-> `SUPER, Cyrillic_ef` -> `SUPER, Cyrillic_ef`
You can change this behavior globally or per-device by setting `resolve_binds_by_sym = 1`. You can change this behavior globally or per-device by setting
In that case, binds will activate when the symbol typed matches the symbol specified in the bind. `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 For example: if your layouts are `us,fr` and have a bind for `SUPER, A` you'd
first letter on the second row while the `us` layout is active and the first letter on the first row need to press the first letter on the second row while the `us` layout is active
while the `fr` layout is active. and the first letter on the first row while the `fr` layout is active.
{{< /callout >}} {{< /callout >}}
@ -123,7 +125,7 @@ windowrule=windowdance,title:^(Rhythm Doctor)$
Click the GIF below to see a full demo video 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://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 ### Shimeji
@ -146,7 +148,7 @@ kill them.
{{< /callout >}} {{< /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 ## Toggle animations/blur/etc hotkey

View file

@ -70,8 +70,8 @@ For now, the supported fields are:
```ini ```ini
class - class regex class - class regex
title - title regex title - title regex
initialClass - initialClass regex initialclass - initialClass regex
initialTitle - initialTitle regex initialtitle - initialTitle regex
xwayland - 0/1 xwayland - 0/1
floating - 0/1 floating - 0/1
fullscreen - 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. 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 >}} {{< callout type=info >}}
To get more information about a window's class, title, XWayland status or its To get more information about a window's class, title, XWayland status or its

View file

@ -55,7 +55,7 @@ general {
listener { listener {
timeout = 150 # 2.5min. timeout = 150 # 2.5min.
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor. 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. # turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.

View file

@ -187,7 +187,8 @@ label {
``` ```
Available variables for `text`: 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`) - `$TIME` - current time (e.g. `13:37`)
- `$FAIL` - last pam fail reason - `$FAIL` - last pam fail reason
- `$ATTEMPTS` - failed attempts - `$ATTEMPTS` - failed attempts

View file

@ -160,8 +160,8 @@ For Nix users, the equivalent of the above is
boot.kernelParams = [ "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ]; 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 # Making sure to use the proprietary drivers until the issue above is fixed upstream
hardware.nvidia.open = false hardware.nvidia.open = false;
``` ```