feat: env variables for wayland

This commit is contained in:
s-prechtl 2024-12-09 20:00:48 +01:00
parent 8ae2183e21
commit 05a41d8d00
2 changed files with 13 additions and 1 deletions

View file

@ -114,6 +114,8 @@
clang-tools
cmake
discord
discord-canary
electrum
fastfetch
file
filezilla
@ -160,6 +162,7 @@
usbutils
vencord
vim
virtiofsd
waybar
wdisplays
webcord

View file

@ -164,6 +164,15 @@
# Optional, hint Electron apps to use Wayland:
home.sessionVariables = {
NIXOS_OZONE_WL = "1";
ELECTRON_OZONE_PLATFORM_HINT = "wayland";
ELECTRON_OZONE_PLATFORM_HINT = "auto";
GDK_BACKEND = "wayland,x11,*";
SDL_VIDEODRIVER = "wayland";
CLUTTER_BACKEND = "wayland";
XDG_CURRENT_DESKTOP = "Hyprland";
XDG_SESSION_TYPE = "wayland";
XDG_SESSION_DESKTOP = "Hyprland";
QT_AUTO_SCREEN_SCALE_FACTOR = 1;
QT_QPA_PLATFORM = "wayland;xcb";
QT_WAYLAND_DISABLE_WINDOWDECORATION = 1;
};
}