start sway support

This commit is contained in:
Tobias Powalowski 2023-07-10 21:27:17 +02:00
parent cc976f2fa4
commit 44bc2afd80
2 changed files with 3 additions and 1 deletions

View file

@ -9,7 +9,8 @@ _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 exec dbus-run-session sway >/dev/tty7 2>&1" > /usr/bin/sway-wayland
echo "MOZ_ENABLE_WAYLAND=1 QT_QPA_PLATFORM=wayland XDG_SESSION_TYPE=wayland XKB_DEFAULT_LAYOUT="$(grep 'KEYMAP' /etc/vconsole | cut -d '=' | 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
}

View file

@ -747,6 +747,7 @@ border2_color = (BLACK,WHITE,ON)
menubox_border_color = (BLACK,WHITE,ON)
menubox_border2_color = (BLACK,WHITE,ON)
EOF
export XKB_DEFAULT_LAYOUT="$(grep 'KEYMAP' /etc/vconsole | cut -d '=' | sed -e 's#-.*#g')"
}
_custom_wayland_xorg() {