This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/nix/home/hyprland/hyprland-environment.nix

31 lines
660 B
Nix

{ config, ... }:
{
# hyprland environment variables
wayland.windowManager.hyprland.settings = {
env = [
# firefox
"MOZ_ENABLE_WAYLAND,1"
# electron
"ELECTRON_OZONE_PLATFORM_HINT,auto"
# desktop frameworks
"CLUTTER_BACKEND,wayland"
"GDK_BACKEND,wayland,x11"
"QT_AUTO_SCREEN_SCALE_FACTOR,1"
"QT_QPA_PLATFORM,wayland;xcb"
"QT_QPA_PLATFORMTHEME,qt5ct"
"QT_QPA_PLATFORMTHEME,qt6ct"
"QT_SCALE_FACTOR,1"
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
"XDG_CURRENT_DESKTOP,Hyprland"
"XDG_SESSION_DESKTOP,Hyprland"
"XDG_SESSION_TYPE,wayland"
];
};
}