From 087b58e2302ac7108f972917287ed5ec919cb8c9 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Wed, 28 Feb 2024 11:13:53 +0100 Subject: [PATCH] nvidia.conf environment variation aded. --- README.md | 14 +++----------- hypr/conf/environments/nvidia.conf | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 11 deletions(-) create mode 100644 hypr/conf/environments/nvidia.conf diff --git a/README.md b/README.md index 1815bcb..87cadac 100644 --- a/README.md +++ b/README.md @@ -131,19 +131,11 @@ Users have reported that Hyprland with dotfiles could be installed successfully There is no official Hyprland support for Nvidia hardware. However, you might make it work properly following this page. https://wiki.hyprland.org/Nvidia/ -In case you don't see the mouse cursor please add the folling line to your .bashrc +Please select the following variation in the settings script (system/environment): -``` -WLR_NO_HARDWARE_CURSORS=1 -``` +https://gitlab.com/stephan-raabe/dotfiles/-/blob/main/hypr/conf/environments/nvidia.conf -Or create a environment variation for nvidia in ~/dotfiles/hypr/conf/environments/nvidia.conf by copying the default.conf and add the line - -``` -env = WLR_NO_HARDWARE_CURSORS, 1 -``` - -Then select the file in the settings script in system/environment +Or set the included environment variables in hyprland.conf ## Launch Hyprland from tty diff --git a/hypr/conf/environments/nvidia.conf b/hypr/conf/environments/nvidia.conf new file mode 100644 index 0000000..fca9e41 --- /dev/null +++ b/hypr/conf/environments/nvidia.conf @@ -0,0 +1,15 @@ +# ----------------------------------------------------- +# Environment Variables +# name: "Nvidia" +# ----------------------------------------------------- + +# https://wiki.hyprland.org/Nvidia/ +env = XCURSOR_SIZE,24 +env = QT_QPA_PLATFORM,wayland +env = WLR_NO_HARDWARE_CURSORS,1 +env = LIBVA_DRIVER_NAME,nvidia +env = XDG_SESSION_TYPE,wayland +env = GBM_BACKEND,nvidia-drm +env = __GLX_VENDOR_LIBRARY_NAME,nvidia +# env = __GL_VRR_ALLOWED,1 +# env = WLR_DRM_NO_ATOMIC,1 \ No newline at end of file