-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv
More file actions
55 lines (48 loc) · 1.81 KB
/
Copy pathenv
File metadata and controls
55 lines (48 loc) · 1.81 KB
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
# System
export BROWSER=firefox
export TERMINAL=alacritty
export ELECTRON_TRASH=gio
# Wayland / Hyprland Core
export XDG_CURRENT_DESKTOP=Hyprland
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=Hyprland
# Toolkits / Rendering
export MOZ_ENABLE_WAYLAND=1
export GDK_BACKEND="wayland,x11"
export CLUTTER_BACKEND=wayland
export ELECTRON_OZONE_PLATFORM_HINT=auto
export QT_QPA_PLATFORM="wayland;xcb"
export QT_QPA_PLATFORMTHEME=qt6ct
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export _JAVA_AWT_WM_NONREPARENTING=1
# Cursors
export GDK_SCALE=1
export XCURSOR_THEME=Adwaita
export HYPRCURSOR_SIZE=24
export XCURSOR_SIZE=24
export QT_CURSOR_SIZE=24
# =============================================================================
# CONFIGURATIONS SPÉCIFIQUES AUX HÔTES (HOSTNAME)
# =============================================================================
case "$(hostname)" in
PadsP5560)
# Hardware acceleration drivers for Intel iGPU (Mesa/Iris)
export LIBVA_DRIVER_NAME=iHD
export __GLX_VENDOR_LIBRARY_NAME=mesa
export DRI_PRIME=0
# Define GPU priority order (Intel iGPU first, NVIDIA dGPU second)
# Essential on Hyprland v0.43+ (via Aquamarine) for multi-GPU and screen sharing stability
export AQ_DRM_DEVICES="/dev/dri/card1:/dev/dri/card0"
# Force Vulkan to target Intel iGPU by default (prevents session startup crashes/conflicts)
export VK_DRIVER_FILES="/usr/share/vulkan/icd.d/intel_icd.json"
# Lightweight NVIDIA optimizations (used when offloading professional apps via prime-run)
export NVD_BACKEND=direct
export __GL_GSYNC_ALLOWED=1
;;
PadsTower)
# AMD GPU Optimizations
export AMD_VULKAN_ICD=RADV
export AQ_DRM_DEVICES=/dev/dri/card1
;;
esac