[sway] update starter script

This commit is contained in:
Gwenhael Le Moine 2022-10-06 12:36:35 +02:00
parent fd32f8ed66
commit cd3bf08b15
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -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"