Other Wayland WMs step-by-step setup?

flcl

New Member


Messages: 1

I am new to the Freebsd OS. I have used linux and come from Arch. I am interested in setting up a WM, Hikari/dwl/etc, but cant seem to set it up. I have been running into environment set up issues and libseat issues. I have been troubleshooting this for a while now. If you have succesfully set up a wm using wayland and wouldn't mind showing me how I would be eternally grateful.
 

pebkac

New Member

Reaction score: 9
Messages: 19

Some notes, maybe they help to get sway running (no systematic setup guide but theoretically it shouldn't be that complicated):

First, you need to have a KMS driver running -- I use i915 and load it with

Code:
kld_list="/boot/modules/i915kms.ko"

in /etc/rc.conf -- otherwise, it won't work!

Then, install sway (pkg install sway). Note that I do not manually install any xorg packages anymore, works for me without it and I only use sway as my daily driver anyway.

Don't forget to create a tmpfs /tmp via /etc/fstab:

Code:
tmpfs            /tmp    tmpfs    rw,mode=01777    0    0

Then I start my sway session with this shell script after logging in (which sets a lot of env variables for a lot of applications that otherwise would use Xwayland (and maybe some leftovers that I did not care to cleanup):

Code:
#!/bin/bash

export MOZ_ENABLE_WAYLAND=1
export XDG_SESSION_TYPE=wayland
export XDG_RUNTIME_DIR=/tmp/$USER/.xdg
export CLUTTER_BACKEND=wayland
export SDL_VIDEODRIVER=wayland
export LIBGL_DRI3_ENABLE=1
export XKB_DEFAULT_RULES=evdev
export QT_QPA_PLATFORM=wayland-egl
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export BEMENU_BACKEND=wayland
export WLR_DRM_NO_ATOMIC=1
export XCURSOR_THEME=whiteglass

[ -d $XDG_RUNTIME_DIR ] || mkdir -m 700 -p $XDG_RUNTIME_DIR

WM=sway
exec dbus-launch --sh-syntax --exit-with-session sway

Hope that helps!
 
Top