Other Setting Up Wayland (Sway)

I installed from the mini image with no desktop (USB installation). Here, I am sharing the steps needed to successfully setup Wayland, and Sway in particular, but many of the steps are required for general Wayland use. It's not at all difficult to have a Wayland window manager running, but without knowing a few key steps, one can become frustrated:

Wayland/Windowing General
  • pkg install drm-kmod
  • sysrc kld_list+=i915kms
  • pkg install seatd
  • In /etc/rc.conf: seatd_enable="YES"
  • service seatd start (or reboot)
  • pkg install wayland xwayland
  • pkg install noto-basic (important)
Sway
  • pkg install sway
Preferences (select any)
  • pkg install alacritty or pkg install foot
  • pkg install swaybg
  • pkg install swayidle
  • pkg install swaylock
Other:
  • Copy the default sway config file from /usr/local/etc/sway/config to ~/.config/sway/ and edit as needed.
Important

I highlighted "pkg install noto-basic" because I had started running sway and was having problems with text not being displayed (just empty square boxes where characters would be) and terminals not running (neither alacritty nor foot). Once I installed the font(s) (noto-basic), the desktop environment worked fine.

Not also, that I highlighted the location of the default sway config file: /usr/local/etc/sway/config This is because on FreeBSD (I'm using FreeBSD 15), the default sway config file is not in the typical location (/etc/sway/config). (This is good though, because as we know, FreeBSD has good separation of system and userland.) Also, it's important to comment out anything in the config file that runs sway utilities (e.g. swaybg, swayidle, ...) if they are not installed.

sway offers a few other utilities in addition to those listed in preferences.

Trivia: Why is foot terminal emulator called "foot"? The author states that it's called "foo", so it's foo terminal, thus "foot". (Apparently couldn't think of a name :-) ).

Hope helpful, and very excited to be running the full release of FreeBSD 15. I very much like the professionalism of FreeBSD and it's reflected in the OS itself and the simplicity of configuration steps. Configuration steps are needed sometimes, but they appear needed only because they are for a user-specific interest that is not an appropriate default assumption of the OS, and the simplicity of the steps themselves reflects thoughtful design IMHO.
 
It is equally important to install packages: qt6-wayland, webfonts, qt5-wayland, qt5ct, nerd-fonts, noto-emoji, wlr-randr.
 
Thank you. I just followed your wiki steps and for some reason didn't work on. me..

Correction:) My bad it works.. Thanks.
 
nerd-fonts
This might not be a good idea because

Code:
$ sudo pkg install nerd-fonts
Updating FreeBSD-ports repository catalogue...
...
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    nerd-fonts: 3.3.0 [FreeBSD-ports]

Number of packages to be installed: 1

The process will require 6 GiB more space.
918 MiB to be downloaded.

Proceed with this action? [y/N]: NO, THANKS ))

6 GiB of fonts (((
 
Back
Top