start sway support

This commit is contained in:
Tobias Powalowski 2023-07-10 21:44:52 +02:00
parent b427c171b2
commit 1ee47d373f

View file

@ -9,7 +9,7 @@ _install_sway() {
_start_sway() {
echo -e "Launching \e[1mSway\e[m now, logging is done on \e[1m/dev/tty7\e[m..."
echo -e "To relaunch \e[1mSway\e[m use: \e[92msway-wayland\e[m"
echo "MOZ_ENABLE_WAYLAND=1 QT_QPA_PLATFORM=wayland XDG_SESSION_TYPE=wayland XKB_DEFAULT_LAYOUT="$(grep 'KEYMAP' /etc/vconsole.conf | cut -d '=' | sed -e 's#-.*##g')"
echo "MOZ_ENABLE_WAYLAND=1 QT_QPA_PLATFORM=wayland XDG_SESSION_TYPE=wayland XKB_DEFAULT_LAYOUT="$(grep 'KEYMAP' /etc/vconsole.conf | cut -d '=' -f2 | sed -e 's#-.*##g')"
exec dbus-run-session sway >/dev/tty7 2>&1" > /usr/bin/sway-wayland
chmod 755 /usr/bin/sway-wayland
sway-wayland