2020-11-28 18:25:23 +01:00
|
|
|
# {{@@ header() @@}}
|
|
|
|
# __ _ _
|
|
|
|
# / _(_)___| |__
|
|
|
|
# | |_| / __| '_ \
|
|
|
|
# | _| \__ \ | | |
|
|
|
|
# |_| |_|___/_| |_|
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# start window manager if using tty1
|
|
|
|
########################################################
|
|
|
|
function esway
|
|
|
|
|
2021-03-23 15:57:28 +01:00
|
|
|
# You get a wayland, and you get a wayland. Everybody get's a wayland!
|
2021-09-04 02:13:49 +02:00
|
|
|
set -x MOZ_ENABLE_WAYLAND 1
|
2021-04-21 08:12:34 +02:00
|
|
|
# set -x CLUTTER_BACKEND wayland
|
|
|
|
# set -x QT_QPA_PLATFORM wayland-egl
|
|
|
|
# set -x ECORE_EVAS_ENGINE wayland-egl
|
|
|
|
# set -x ELM_ENGINE wayland_egl
|
|
|
|
# set -x SDL_VIDEODRIVER wayland
|
|
|
|
# set -x _JAVA_AWT_WM_NONREPARENTING 1
|
|
|
|
# set -x NO_AT_BRIDGE 1
|
2020-11-28 18:25:23 +01:00
|
|
|
|
2021-09-04 02:13:49 +02:00
|
|
|
# Hardware acceleration
|
|
|
|
set -x MOZ_DISABLE_RDD_SANDBOX 1
|
|
|
|
|
2020-11-28 18:25:23 +01:00
|
|
|
# Allow sway decoration on gtk3 apps
|
|
|
|
set -x GTK_CSD 0
|
|
|
|
test -f '/usr/lib/libgtk3-nocsd.so.0' &&
|
|
|
|
set -x LD_PRELOAD '/usr/lib/libgtk3-nocsd.so.0'
|
|
|
|
|
|
|
|
# set -x QT_SCALE_FACTOR 1.0001
|
|
|
|
# set -x QPA_PLATFORM wayland
|
|
|
|
# set -x QT_QPA_PLATFORM wayland
|
|
|
|
|
2021-03-23 15:57:28 +01:00
|
|
|
# Needed for xdg-dektop-portal
|
2020-11-28 18:25:23 +01:00
|
|
|
set -x XDG_SESSION_TYPE wayland
|
2021-03-23 15:57:28 +01:00
|
|
|
set -x XDG_SESSION_DESKTOP sway
|
|
|
|
set -x XDG_CURRENT_DESKTOP sway
|
2020-11-28 18:25:23 +01:00
|
|
|
|
|
|
|
# this should not be necessary, but whatever
|
2021-12-08 00:51:30 +01:00
|
|
|
if not pidof sway &> /dev/null
|
|
|
|
pkill -HUP -u "$USER" runsvdir
|
|
|
|
exec dbus-launch --exit-with-session sway
|
|
|
|
end
|
2020-11-28 18:25:23 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
if test "$XDG_VTNR" = 1
|
2021-06-06 22:02:47 +02:00
|
|
|
and test -z "$DISPLAY$WAYLAND_DISPLAY"
|
2020-11-28 18:25:23 +01:00
|
|
|
|
2021-08-24 23:14:03 +02:00
|
|
|
esway &> .swaylog
|
2020-11-28 18:25:23 +01:00
|
|
|
# ei3 &> .i3log
|
|
|
|
# ebsp &> .bsplog
|
|
|
|
|
|
|
|
end
|
|
|
|
|