Skip to content

Instantly share code, notes, and snippets.

@matjam
Last active March 29, 2024 22:09
Show Gist options
  • Save matjam/ffd408cbb0bf89905018c9554918fffa to your computer and use it in GitHub Desktop.
Save matjam/ffd408cbb0bf89905018c9554918fffa to your computer and use it in GitHub Desktop.
env vars for hyprland
#!/usr/bin/bash
export XCURSOR_SIZE=24
export QT_QPA_PLATFORMTHEME=qt5ct # change to qt6ct if you have that
export ELECTRON_OZONE_PLATFORM_HINT=auto
export GDK_BACKEND=wayland,x11
export SDL_VIDEODRIVER=wayland
export CLUTTER_BACKEND=wayland
export MOZ_ENABLE_WAYLAND=1
export MOZ_DISABLE_RDD_SANDBOX=1
export _JAVA_AWT_WM_NONREPARENTING=1
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_QPA_PLATFORM=wayland
export LIBVA_DRIVER_NAME=nvidia
export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export WLR_NO_HARDWARE_CURSORS=1
export __NV_PRIME_RENDER_OFFLOAD=1
export __VK_LAYER_NV_optimus=NVIDIA_only
export PROTON_ENABLE_NGX_UPDATER=1
export NVD_BACKEND=direct
export __GL_GSYNC_ALLOWED=1
export __GL_VRR_ALLOWED=1
export WLR_DRM_NO_ATOMIC=1
export WLR_USE_LIBINPUT=1
export __GL_MaxFramesAllowed=1
export WLR_RENDERER_ALLOW_SOFTWARE=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment