aboutsummaryrefslogtreecommitdiffstats
path: root/example.conf/winitrc
blob: f04af3465eaa8271fe2e01e8f11999af0b509f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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}"