2022-04-15 17:38:05 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Starting sway with proper environment too. My {bash,zsh}rc handles
|
|
|
|
# exec
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
# Using fcitx
|
|
|
|
export XMODIFIERS=@im=fcitx
|
|
|
|
export GTK_IM_MODULE="fcitx"
|
|
|
|
export QT_IM_MODULE="fcitx"
|
|
|
|
|
|
|
|
# qt5ct allows theme choosing
|
|
|
|
export QT_QPA_PLATFORMTHEME="qt5ct"
|
|
|
|
|
|
|
|
# Ensuring Wayland gets used as per Arch Wiki
|
|
|
|
# 2021-02-28 https://wiki.archlinux.org/index.php/Wayland#GUI_libraries
|
|
|
|
export QT_QPA_PLATFORM=wayland
|
|
|
|
export CLUTTER_BACKEND=wayland
|
|
|
|
export SDL_VIDEODRIVER=wayland
|
2022-04-16 15:01:52 +02:00
|
|
|
# Mozilla Products
|
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
2022-04-15 17:38:05 +02:00
|
|
|
|
2022-06-11 21:19:28 +02:00
|
|
|
# Waybar states: [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity
|
|
|
|
export XDG_CURRENT_DESKTOP=Unity
|
|
|
|
|
2022-04-15 17:38:05 +02:00
|
|
|
dbus-launch --exit-with-session sway --unsupported-gpu $@
|
|
|
|
set +x
|