Steps to install Sway with SDDM on Alpine 3.20.0
doas apk -U upgrade
doas setup-xorg-base
doas setup-wayland-base
doas apk add font-dejavu foot polkit-elogind sway sddm
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 polkit start
doas rc-update add polkit
doas rc-service sddm start
doas rc-update add sddm
Optional
To auto login to sddm
doas mkdir /etc/sddm.conf.d/
- ```
doas cat » /etc/sddm.conf.d/autologin.conf «EOF
[Autologin]
User=john
EOF
Auto Launch on Sway Login
- add to ~/.config/sway/config:
exec command-to-run