neuswc

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

README (3122B)


      1 neuswc
      2 ------
      3 
      4 NOTE: this is a patched version of neuswc which uses non-upstreamed patches, this will likely be archived once all patches have made it upstream.
      5 See: ./patches for all the patches applied
      6 
      7 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)
      8 
      9 you can view a list of some compositors made with neuswc at the [wayland.fyi website.](https://wayland.fyi)
     10 
     11 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.
     12 
     13 
     14 neu features
     15 ------------
     16 
     17 - z axis ordering
     18 - more cursor functions
     19 - zooming
     20 - experimental subsurface support
     21 - fullscreen
     22 - double window borders
     23 - screenshots
     24 - layer shell support
     25 - window decorations
     26 - framebuffer support
     27 
     28 neuswc is in active development, we plan to add many more features, and increase compatibility with new wayland protocols.
     29 
     30 build
     31 -----
     32 
     33 you will need: 
     34 - A C99-compatible compiler
     35 - meson or muon
     36 - pkg-config
     37 - wayland-scanner, wayland-server, wayland-client
     38 - wayland-server, wayland-client
     39 - libdrm (if  building with DRM support) 
     40 - pixman, xkbcommon
     41 - [neuwld](https://git.sr.ht/~shrub900/neuwld)
     42 - libinput on Linux and wscons on BSD
     43 - xcb, xcb-composite, xcb-ewmh and xcb-icccm if you want Xwayland support.
     44 
     45 to build, i use muon and samu. you can probably do something similar with meson and ninja.
     46 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:
     47 
     48 ```
     49 muon setup build
     50 samu -C build
     51 sudo samu -C build install
     52 ```
     53 
     54 openbsd
     55 _______
     56 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.
     57 
     58 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.
     59 
     60 for persistent ownership of said devices, you can check the fbtab(5) in `/etc/fbtab`
     61 
     62 credits
     63 -------
     64 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.
     65 
     66 repositories
     67 ------------
     68 
     69 - [srcdump](https://srcdump.net/shrub/neuswc)
     70 - [sourcehut](https://git.sr.ht/~shrub900/neuswc)