From cd3bf08b150f557e53a438c368fe0894095e3dec Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 6 Oct 2022 12:36:35 +0200 Subject: [PATCH] [sway] update starter script --- wayland/sway/SlackBuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/wayland/sway/SlackBuild b/wayland/sway/SlackBuild index 0184a267..ccd7ffa5 100755 --- a/wayland/sway/SlackBuild +++ b/wayland/sway/SlackBuild @@ -79,18 +79,25 @@ set -e # set -x # echo "sway Starting: \$( date )" -# avoid wlr error -unset DISPLAY - # Uncomment if mouse pointer is invisible #export WLR_NO_HARDWARE_CURSORS=1 +unset QT_QPA_PLATFORM + +export QT_QPA_PLATFORMTHEME=qt5ct +export MOZ_ENABLE_WAYLAND=1 +export XDG_CURRENT_DESKTOP=sway +export XDG_PICTURES_DIR=\$HOME/.wallpapers + export SWAYSOCK=/run/user/\$(id -u)/sway-ipc.\$(id -u).\$(pgrep -x sway).sock export XDG_RUNTIME_DIR=/tmp/xdg-runtime-\$(id -u) mkdir -p \$XDG_RUNTIME_DIR chmod 0700 \$XDG_RUNTIME_DIR +# avoid wlr error +unset DISPLAY + exec dbus-run-session sway EOF chmod +x "$PKG$PREFIX/bin/start_sway.sh"