Shell commands executed just before Sway is started. See and <https://github.com/swaywm/wlroots/blob/master/docs/env_vars.md for some useful environment variables.
Declarations
Type
strings concatenated with "\n"
Default
""
Example
''
# SDL:
export SDL_VIDEODRIVER=wayland
# QT (needs qt5.qtwayland in systemPackages):
export QT_QPA_PLATFORM=wayland-egl
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
# Fix for some Java AWT applications (e.g. Android Studio),
# use this if they aren't displayed properly:
export _JAVA_AWT_WM_NONREPARENTING=1
''