Skip to content

sway-1.7-ve-2

Compare
Choose a tag to compare
@github-actions github-actions released this 16 Mar 09:39
· 56 commits to master since this release

Summary

I've spent a few days creating a stable release for our Ubuntu 20.04 laptops.
This build is very stable and screen-sharing works perfectly.

Its also contains a build of all the useful tools you need to have a functional sway environment.
If you do decide to give it a spin you need to extract it correctly or you'll brick your system...

cd /
tar xvfh ~/Downloads/sway-1.6.1....tar.gz  # The h flag is very important!!

If you accidently forget the h flag DO NOT REBOOT!

To fix, rm the /lib folder, and re-create the original symlink /lib -> /usr/lib

Extra runtime deps:

sudo apt install libmd0 liblilv-0-0 libinih1 libjsoncpp1 libmpdclient2

Wayland for electron apps / chrome

Start those apps with e.g.:

swaymsg exec "spotify --enable-features=UseOzonePlatform --ozone-platform=wayland"
swaymsg exec "google-chrome --enable-features=UseOzonePlatform --ozone-platform=wayland"
swaymsg exec "code --enable-features=UseOzonePlatform --ozone-platform=wayland"

Chrome

Visit chrome://flags/

Search wayland
Set Preffered ozone platform to : auto
Set WebRTC pipewire support to: enabled

Chrome will now start in Wayland mode automatically if in sway... it will revery to X11 if using X based ubuntu.

Desktop Sharing:

You need to enable the following user services, they only run if something asks to share:

systemctl --user enable pipewire
systemctl --user enable pipewire.socket
systemctl --user enable pipewire-media-session
systemctl --user enable xdg-desktop-portal
systemctl --user enable xdg-desktop-portal-wlr

Just log out, and login again to activate everything (or use systemctl --user start [services])

Test it works on this page:
https://mozilla.github.io/webrtc-landing/gum_test.html