Solved Where can I find a more comprehensive Wayland guide

hello everyone
I just started using FreeBSD. The display server uses Wayland instead of xorg
How to install it and make it sway through startx
Wayland in Wiki was updated a year ago. I wonder if there is any better help now. https://wiki.freebsd.org/Graphics/Wayland

To install the port:
Bash:
cd /usr/ports/graphics/wayland/ && make install clean
To add the package:
Bash:
pkg install wayland

Then what should I do, such as what environment variables need to be set

I appreciate any help
 
I remember this environment variable being mandatory: XDG_RUNTIME_DIR=/tmp/somewhere

Your user probably needs to be member of the video group.
Also, look at "Notes from Updating" in x11-wm/sway. It wants seatd.

Maybe sway itself has a man file?

Before launching the compositor, find out the hotkey for the start of a terminal. ;D

Unfortunately, the handbook only covers Xorg.
 
I remember this environment variable being mandatory: XDG_RUNTIME_DIR=/tmp/somewhere

Your user probably needs to be member of the video group.
Also, look at "Notes from Updating" in x11-wm/sway. It wants seatd.

Maybe sway itself has a man file?

Before launching the compositor, find out the hotkey for the start of a terminal. ;D

Unfortunately, the handbook only covers Xorg.
Thank you for your reply.
Yesterday I compiled and installed Wayland and sway through ports
Prompt when running sway
Bash:
sway
Tips:XDG_RUNTIME_DIR not set,because it was too late, I didn't continue :)

I'll try your reply later today,And read man sway carefully :beer:
 
Thanks to pebkac and George
I successfully launched sway.

I put my settings here, hoping to help others

Code:
#!/usr/local/bin/fish

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

exec seatd-launch sway
 
Back
Top