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