This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/dotfiles/fish/wm.fish

56 lines
1.4 KiB
Fish
Raw Normal View History

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!
2022-02-02 04:00:32 +01:00
set -x MOZ_ENABLE_WAYLAND 1
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
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
2022-02-13 15:20:30 +01:00
if test (tty) = /dev/tty1
and test -z "$DISPLAY$WAYLAND_DISPLAY"
2020-11-28 18:25:23 +01:00
esway &> .swaylog
2020-11-28 18:25:23 +01:00
# ei3 &> .i3log
# ebsp &> .bsplog
end