neuswc

patched neuswc library (tracked)
git clone https://git.daat.foo/neuswc.git
Log | Files | Refs | README | LICENSE

README.md (2932B)


      1 neuswc
      2 ------
      3 
      4 neuswc is a fork of [swc](https://github.com/michaelforney/swc/) created by [wayland.fyi](https://wayland.fyi). it provides an easy C library interface to make a wayland compositor. it is much smaller than alternatives like wlroots, and easier to use. it is also portable to linux, freebsd, netbsd, and openbsd. if you want to help with that (or anything else) submit a patch to the [mailing list](https://lists.sr.ht/~shrub900/neuswc)
      5 
      6 you can view a list of some compositors made with neuswc at the [wayland.fyi website.](https://wayland.fyi)
      7 
      8 the refrence compositor implementation is [tohu](https://git.sr.ht/~shrub900/tohu): it uses many of the new features and is small and simple to understand. if you want to make your own compositor, it can be a useful place to refrence how things work, or a base to customize.
      9 
     10 
     11 neu features
     12 ------------
     13 
     14 - z axis ordering
     15 - more cursor functions
     16 - zooming
     17 - experimental subsurface support
     18 - fullscreen
     19 - double window borders
     20 - screenshots
     21 - layer shell support
     22 - window decorations
     23 - framebuffer support
     24 
     25 neuswc is in active development, we plan to add many more features, and increase compatibility with new wayland protocols.
     26 
     27 build
     28 -----
     29 
     30 you will need: 
     31 - A C99-compatible compiler
     32 - meson or muon
     33 - pkg-config
     34 - wayland-scanner, wayland-server, wayland-client
     35 - wayland-server, wayland-client
     36 - libdrm (if  building with DRM support) 
     37 - pixman, xkbcommon
     38 - [neuwld](https://git.sr.ht/~shrub900/neuwld)
     39 - libinput on Linux and wscons on BSD
     40 - xcb, xcb-composite, xcb-ewmh and xcb-icccm if you want Xwayland support.
     41 
     42 to build, i use muon and samu. you can probably do something similar with meson and ninja.
     43 warning if you use muon, you will need a recent version built from their git for wayland module support, probably not your distro-packaged version. i do:
     44 
     45 ```
     46 muon setup build
     47 samu -C build
     48 sudo samu -C build install
     49 ```
     50 
     51 openbsd
     52 _______
     53 you need to make sure xenocara is stopped. this includes xenodm which you can close with `rcctl stop xenodm # disable permanent and after reboot`; this is because openbsd doesnt support handing off the drm device yet.
     54 
     55 you also need to own `/dev/dri/card0` and any keyboard or mouse devices in `/dev/wskbdN` and `/dev/wsmouseN`. we do not use the general keyboard multiplexer as its not suitable for wayland yet.
     56 
     57 for persistent ownership of said devices, you can check the fbtab(5) in `/etc/fbtab`
     58 
     59 credits
     60 -------
     61 an extremely large thank you to [michael forney](https://mforney.org) for creating the original [swc](https://github.com/michaelforney/swc) and [wld](https://github.com/michaelforney/wld), without his amazing work none of this would be possible! once they are more stable, we hope some of the changes from our neu* forks will eventually be upstreamed into the original projects.
     62 
     63 repositories
     64 ------------
     65 
     66 - [srcdump](https://srcdump.net/shrub/neuswc)
     67 - [sourcehut](https://git.sr.ht/~shrub900/neuswc)