2020-04-12 10:44:15 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Set environment variables for Sway
|
|
|
|
|
|
|
|
# Firefox
|
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
|
|
export MOZ_USE_XINPUT2=1
|
|
|
|
export MOZ_WEBRENDER=1
|
2021-08-08 12:25:20 +00:00
|
|
|
export MOZ_DBUS_REMOTE=1
|
2020-04-12 10:44:15 +00:00
|
|
|
|
2020-04-18 10:40:46 +00:00
|
|
|
# Enable xdg-desktop-portal-wlr
|
|
|
|
export XDG_CURRENT_DESKTOP=sway
|
2020-10-06 17:38:15 +00:00
|
|
|
export XDG_SESSION_TYPE=wayland
|
2020-04-18 10:40:46 +00:00
|
|
|
|
2020-04-12 10:44:15 +00:00
|
|
|
# Fix java on wayland
|
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
|
|
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
|
|
|
|
|
|
|
|
# Enable qt5 theming and wayland support
|
|
|
|
export QT_QPA_PLATFORMTHEME=qt5ct
|
2020-04-19 08:54:48 +00:00
|
|
|
export QT_QPA_PLATFORM=wayland
|
2020-04-12 10:44:15 +00:00
|
|
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
|
|
|
|
2021-08-16 19:30:50 +00:00
|
|
|
# Enable wayland support on clutter
|
|
|
|
export CLUTTER_BACKEND=wayland
|
|
|
|
|
2020-04-12 10:44:15 +00:00
|
|
|
# Fix redshift on wlroots
|
|
|
|
export WLR_DRM_NO_ATOMIC=1
|
|
|
|
|
|
|
|
# Run sway
|
2020-04-26 11:30:43 +00:00
|
|
|
dbus-run-session sway
|
2020-04-12 10:44:15 +00:00
|
|
|
|
|
|
|
# Unset the variables after quitting Sway
|
2020-04-19 08:54:48 +00:00
|
|
|
unset MOZ_ENABLE_WAYLAND
|
|
|
|
unset MOZ_USE_XINPUT2
|
|
|
|
unset MOZ_WEBRENDER
|
2021-08-08 12:25:20 +00:00
|
|
|
unset MOZ_DBUS_REMOTE
|
2020-04-19 08:54:48 +00:00
|
|
|
unset _JAVA_AWT_WM_NONREPARENTING
|
|
|
|
unset _JAVA_OPTIONS
|
|
|
|
unset QT_QPA_PLATFORMTHEME
|
|
|
|
unset QT_QPA_PLATFORM
|
|
|
|
unset QT_WAYLAND_DISABLE_WINDOWDECORATION
|
2021-08-16 19:30:50 +00:00
|
|
|
unset CLUTTER_BACKEND
|
2020-04-19 08:54:48 +00:00
|
|
|
unset WLR_DRM_NO_ATOMIC
|
|
|
|
unset XDG_CURRENT_DESKTOP
|