Steps to install Sway with Greetd + GTKGreet on Alpine 3.20.0
doas apk -U upgrade
doas setup-xorg-base
doas setup-wayland-base
doas apk add cage font-dejavu foot greetd greetd-gtkgreet seatd sway
doas rc-update add seatd
doas adduser $USER seat
doas adduser greetd seat
echo 'command = "cage -s -- gtkgreet"' >> /etc/greetd/config.toml
echo "dbus-run-session -- sway" >> /etc/greetd/environments
mkdir -p ~/.config/sway/
cp /etc/sway/config ~/.config/sway/config
doas rc-service dbus start
doas rc-update add dbus
doas setup-devd udev
doas rc-service greetd start
doas rc-update add greetd
Optional
Auto Launch command on Sway Login
- add to ~/.config/sway/config:
exec command-to-run