mirror of https://github.com/ericonr/dotfiles.git
21 lines
524 B
Plaintext
21 lines
524 B
Plaintext
# ericonr's script for launching applications with the appropriate env
|
|
|
|
if [ $XDG_SESSION_TYPE = wayland ]
|
|
then
|
|
# Qt
|
|
export QT_QPA_PLATFORM=wayland-egl
|
|
export QT_WAYLAND_FORCE_DPI=physical
|
|
export QT_QPA_PLATFORMTHEME="qt5ct"
|
|
# Firefox
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
# Java
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
# SDL - not working for most games
|
|
#export SDL_VIDEODRIVER=wayland
|
|
# Vulkan should use the Intel GPU
|
|
export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json
|
|
else
|
|
export GTK_USE_PORTAL=1
|
|
fi
|
|
|