Advertisement
iamkarlson

Untitled

Mar 22nd, 2023 (edited)
726
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.23 KB | None | 0 0
  1. #!/usr/bin/env sh
  2.  
  3. #
  4. # QT settings
  5. #
  6. export QT_QPA_PLATFORMTHEME=qt5ct
  7. export QT_QPA_PLATFORM=wayland
  8. export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
  9.  
  10.  
  11. #
  12. # NVIDIA settings
  13. #
  14. export WLR_DRM_NO_ATOMIC=1
  15. export WLR_NO_HARDWARE_CURSORS=1
  16. export GBM_BACKEND=nvidia-drm
  17. export __GL_SYNC_ALLOWED=0
  18. export __GL_VRR_ALLOWED=0
  19. export __GLX_VENDOR_LIBRARY_NAME=nvidia
  20. export __NV_PRIME_RENDER_OFFLOAD=1
  21. export __VK_LAYER_NV_optimus=NVIDIA_only
  22. export LIBVA_DRIVER_NAME=nvidia
  23. export VDPAU_DRIVER=nvidia
  24. #export NVD_BACKEND=egl
  25. export NVD_BACKEND=direct
  26. export NVD_LOG=/tmp/nvd.log
  27.  
  28.  
  29. #export WLR_DRM_DEVICES=/dev/dri/card1
  30.  
  31.  
  32. #
  33. # Wayland stuff
  34. #
  35. export XDG_CURRENT_DESKTOP=sway
  36. export XDG_SESSION_DESKTOP=sway
  37. export XDG_SESSION_TYPE=wayland
  38. export _JAVA_AWT_WM_NONREPARENTING=1
  39. #
  40. # Support xdf-desktop-portal-wlr based solutions, for example flameshot
  41. export SDL_VIDEODRIVER=wayland
  42. export _JAVA_AWT_WM_NONREPARENTING=1
  43. export EGL_PLATFORM=wayland
  44.  
  45.  
  46.  
  47. #
  48. # Firefox and WebRTC stuff
  49. #
  50. export MOZ_DISABLE_RDD_SANDBOX=1
  51. export MOZ_ENABLE_WAYLAND=1
  52. export MOZ_WEBRENDER=1
  53. export MOZ_ACCELERATED=1
  54. export RTC_USE_PIPEWIRE=true
  55.  
  56.  
  57. # Sway command line
  58. exec sway --unsupported-gpu -d 2>~/sway.log
  59. #exec sway --unsupported-gpu
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement