-
Notifications
You must be signed in to change notification settings - Fork 0
/
hyprland-nvidia
executable file
·72 lines (56 loc) · 1.7 KB
/
hyprland-nvidia
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env bash
## Setting environment variables for wayland session
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=hyprland
export XDG_CURRENT_DESKTOP=hyprland
export XDG_CURRENT_SESSION=hyprland
## GTK environment
export TDESKTOP_DISABLE_GTK_INTEGRATION=1
export CLUTTER_BACKEND=wayland
export BEMENU_BACKEND=wayland
export GDK_SCALE=1.8
export GDK_DPI_SCALE=1.5
export ELM_SCALE=1.5
## Firefox
export MOZ_ENABLE_WAYLAND=1
## Qt environment
export QT_QPA_PLATFORMTHEME=qt5ct
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_QPA_PLATFORM=xcb
export QT_WAYLAND_FORCE_DPI=physical
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
## Elementary environment
export ELM_DISPLAY=wl
export ECORE_EVAS_ENGINE=wayland_egl
export ELM_ENGINE=wayland_egl
export ELM_ACCEL=opengl
# export ELM_SCALE=1
## SDL environment
export SDL_VIDEODRIVER=wayland
## Java environment
export _JAVA_AWT_WM_NONREPARENTING=1
# LibreOffice
export SAL_USE_VCLPLUGIN=gtk3
## Clutter
export CLUTTER_BACKEND="wayland"
## GDK
export GDK_BACKEND="wayland,x11"
export NO_AT_BRIDGE=1
export WINIT_UNIX_BACKEND=wayland
export DBUS_SESSION_BUS_ADDRESS
export DBUS_SESSION_BUS_PID
## Nvidia Specific env variables
export GBM_BACKEND=nvidia
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export LIBVA_DRIVER_NAME=nvidia
export WLR_NO_HARDWARE_CURSORS=1
export PATH=$PATH:$HOME/.cargo/bin
export PATH=$PATH:$HOME/.local/bin/hypr
export PATH=$PATH:$HOME/.config/emacs/bin
export PATH=$PATH:$HOME/.npm-global/bin
export PATH=$PATH:/usr/local/texlive/2023/bin/x86_64-linux
export MANPATH=$MANPATH:/usr/local/texlive/2023/texmf-dist/doc/man
export INFOPATH=$INFOPATH/usr/local/texlive/2023/texmf-dist/doc/infoexport
export LIBSEAT_BACKEND=logind
## Start Hyprland
Hyprland