Hacker News new | ask | show | jobs
by gautamcgoel 2439 days ago
Can OpenBSD run Sway? Or is that only supported on FreeBSD/Linux?
1 comments

It can't really (other than inside an x11 window maybe), not in its current state. I've heard that someone was working on some Wayland porting efforts, but idk about the state of that.

Looks like OpenBSD has a fairly up to date kms/drm stack now, but you also need:

- to have epoll - https://github.com/jiixyj/epoll-shim might just work

- to expose input devices from the kernel as evdev devices (good idea) or to implement support for your legacy protocol in wlroots / in other places for other compositors (terrible idea)

- to have a device enumeration and hotplug system and either have it pretending it's udev (as we do with https://github.com/FreeBSDDesktop/libudev-devd) or implement support for it in wlroots and everywhere

- direct session glue code at least e.g. https://github.com/swaywm/wlroots/blob/master/backend/sessio...

- but ideally, a working session manager that supports acquiring drm+evdev devices over d-bus e.g. https://github.com/ConsoleKit2/ConsoleKit2/pull/116 && https://github.com/swaywm/wlroots/pull/1467