aboutsummaryrefslogtreecommitdiffstats
path: root/example.conf/winitrc
diff options
context:
space:
mode:
Diffstat (limited to 'example.conf/winitrc')
-rw-r--r--example.conf/winitrc27
1 files changed, 27 insertions, 0 deletions
diff --git a/example.conf/winitrc b/example.conf/winitrc
new file mode 100644
index 0000000..f04af34
--- /dev/null
+++ b/example.conf/winitrc
@@ -0,0 +1,27 @@
+# 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}"