# In this example I am using SWAY CONFIG="${HOME}/.config/sway/config" # Load general settings # Though we are piggybacking on X11 stuff, it is # independent of what composition manager we use. # # XXX: if you use systemd-user sessions, you will likely # need this, otherwise the user session might not function # correctly. if [ -d /etc/X11/xinit/xinitrc.d ] ; then for f in /etc/X11/xinit/xinitrc.d/?* ; do [ -x "${f}" ] && source "${f}" done unset f fi # These options should not be used globally, some # applications (like Firefox 49.0) crash. #export GDK_BACKEND=wayland #export QT_QPA_PLATFORM=wayland-egl #export SDL_VIDEODRIVER=wayland # Load WindowManager # XXX: use env has the added benefit of hooking in all of the # environmental variables set using startw(1). exec /usr/bin/env /usr/bin/sway -c "${CONFIG}"