Hyprland dotfiles
| 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 |
| 8 | env = GDK_BACKEND,wayland,x11,* |
| 9 | env = QT_QPA_PLATFORM,wayland;xcb |
| 10 | env = 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 |
| 17 | env = XDG_CURRENT_DESKTOP,Hyprland |
| 18 | env = XDG_SESSION_DESKTOP,Hyprland |
| 19 | env = XDG_SESSION_TYPE,wayland |
| 20 | |
| 21 | # QT Variables |
| 22 | env = QT_AUTO_SCREEN_SCALE_FACTOR,1 |
| 23 | env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 |
| 24 | env = QT_QPA_PLATFORMTHEME,qt5ct |
| 25 | env = QT_QPA_PLATFORMTHEME,qt6ct |
| 26 | |
| 27 | # hyprland-qt-support |
| 28 | env = 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/ |
| 34 | env = GDK_SCALE,1 |
| 35 | env = 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/ |
| 40 | env = HYPRCURSOR_THEME,Bibata-Modern-Ice |
| 41 | env = HYPRCURSOR_SIZE,24 |
| 42 | |
| 43 | # firefox |
| 44 | env = MOZ_ENABLE_WAYLAND,1 |
| 45 | |
| 46 | # electron >28 apps (may help) ## |
| 47 | # https://www.electronjs.org/docs/latest/api/environment-variables |
| 48 | env = 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 | |
| 54 | env = LIBVA_DRIVER_NAME,nvidia |
| 55 | env = __GLX_VENDOR_LIBRARY_NAME,nvidia |
| 56 | env = 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. |