irongit
hygoland/UserConfigs/ENVariables.conf
88 lines3.5 KB
1# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
2# Environment variables. See https://wiki.hyprland.org/Configuring/Environment-variables/
3
4# Set your defaults editor through ENV in ~/.config/hypr/UserConfigs/01-UserDefaults.conf
5
6# environment-variables
7# Toolkit Backend Variables
8env = GDK_BACKEND,wayland,x11,*
9env = QT_QPA_PLATFORM,wayland;xcb
10env = CLUTTER_BACKEND,wayland
11
12#Run SDL2 applications on Wayland.
13#Remove or set to x11 if games that provide older versions of SDL cause compatibility issues
14#env = SDL_VIDEODRIVER,wayland
15
16# xdg Specifications
17env = XDG_CURRENT_DESKTOP,Hyprland
18env = XDG_SESSION_DESKTOP,Hyprland
19env = XDG_SESSION_TYPE,wayland
20
21# QT Variables
22env = QT_AUTO_SCREEN_SCALE_FACTOR,1
23env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
24env = QT_QPA_PLATFORMTHEME,qt5ct
25env = QT_QPA_PLATFORMTHEME,qt6ct
26
27# hyprland-qt-support
28env = QT_QUICK_CONTROLS_STYLE,org.hyprland.style
29
30# xwayland apps scale fix (useful if you are use monitor scaling).
31# Set same value if you use scaling in Monitors.conf
32# 1 is 100% 1.5 is 150%
33# see https://wiki.hyprland.org/Configuring/XWayland/
34env = GDK_SCALE,1
35env = QT_SCALE_FACTOR,1
36
37# Bibata-Modern-Ice-Cursor
38# NOTE! You must have the hyprcursor version to activate this.
39# https://wiki.hyprland.org/Hypr-Ecosystem/hyprcursor/
40env = HYPRCURSOR_THEME,Bibata-Modern-Ice
41env = HYPRCURSOR_SIZE,24
42
43# firefox
44env = MOZ_ENABLE_WAYLAND,1
45
46# electron >28 apps (may help) ##
47# https://www.electronjs.org/docs/latest/api/environment-variables
48env = ELECTRON_OZONE_PLATFORM_HINT,auto # auto selects Wayland if possible, X11 otherwise
49
50# NVIDIA
51# This is from Hyprland Wiki. Below will be activated nvidia gpu detected
52# See hyprland wiki https://wiki.hyprland.org/Nvidia/#environment-variables
53
54env = LIBVA_DRIVER_NAME,nvidia
55env = __GLX_VENDOR_LIBRARY_NAME,nvidia
56env = NVD_BACKEND,direct
57
58# additional ENV's for nvidia. Caution, activate with care
59#env = GBM_BACKEND,nvidia-drm
60
61#env = __GL_GSYNC_ALLOWED,1 #adaptive Vsync
62#env = __NV_PRIME_RENDER_OFFLOAD,1
63#env = __VK_LAYER_NV_optimus,NVIDIA_only
64#env = WLR_DRM_NO_ATOMIC,1
65
66# FOR VM and POSSIBLY NVIDIA
67# LIBGL_ALWAYS_SOFTWARE software mesa rendering
68#env = LIBGL_ALWAYS_SOFTWARE,1 # Warning. May cause hyprland to crash
69#env = WLR_RENDERER_ALLOW_SOFTWARE,1
70
71# nvidia firefox (for hardware acceleration on FF)?
72# check this post https://github.com/elFarto/nvidia-vaapi-driver#configuration
73#env = MOZ_DISABLE_RDD_SANDBOX,1
74#env = EGL_PLATFORM,wayland
75
76#### Aquamarine Environment Variables #### ( Hyprland > 0.45 )
77# https://wiki.hyprland.org/Configuring/Environment-variables/#aquamarine-environment-variables----ref-httpsgithubcomhyprwmaquamarineblobmaindocsenvmd---
78# env = AQ_TRACE,1 # Enables more verbose logging.
79# env = AQ_DRM_DEVICES,/dev/dri/card1:/dev/dri/card0 # Set an explicit list of DRM devices (GPUs) to use. It’s a colon-separated list of paths, with the first being the primary. E.g. /dev/dri/card1:/dev/dri/card0
80# env = AQ_MGPU_NO_EXPLICIT,1 # Disables explicit syncing on mgpu buffers
81# env = AQ_NO_MODIFIERS,1 # Disables modifiers for DRM buffers
82
83#### Hyprland Environment Variables ####
84# https://wiki.hyprland.org/Configuring/Environment-variables/#hyprland-environment-variables
85# env = HYPRLAND_TRACE,1 # Enables more verbose logging.
86# env = HYPRLAND_NO_RT,1 # Disables realtime priority setting by Hyprland.
87# env = HYPRLAND_NO_SD_NOTIFY,1 # If systemd, disables the 'sd_notify' calls.
88# env = HYPRLAND_NO_SD_VARS,1 # Disables management of variables in systemd and dbus activation environments.