wayland.windowManager.sway.extraSessionCommands

Shell commands executed just before Sway is started.

Type
strings concatenated with "\n"
Default
""
Example
''
  export SDL_VIDEODRIVER=wayland
  # needs qt5.qtwayland in systemPackages
  export QT_QPA_PLATFORM=wayland
  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
''
Declared
<home-manager/modules/services/window-managers/i3-sway/sway.nix>