debian 12 was used to build wlroots 0.18 and dwl 0.7

Adding backport and testing repo’s

  • Add following lines to your /etc/apt/sources.list
  • These repo’s are required to pull some version specific packages
    deb http://deb.debian.org/debian bookworm-backports main
    deb http://deb.debian.org/debian sid main
    

Install Required Packages

  • Same packages are needed by both wlroots and dwl
  • Some packages are pulled from backport and testing repo’s due to version requirements
  • This list of packages is not verbose (as of now)
    apt install -t bookworm-backports libwayland-server0
    apt install -t sid libliftoff-dev
    apt install meson cmake libgbm-dev glslang-dev  glslang-tools libudev-dev libseat-dev hwdata libdisplay-info-dev libinput-dev libxcb-dri3-dev libxcb-present-dev libxcb-render-util0-dev libxcb-xinput-dev xwayland  libxcb-errors-dev libxcb-composite0-dev  libxcb-ewmh-dev libxcb-icccm4-dev libxcb-res0-dev
    

Wlroots

Building wlroots is recommended as you can customize your build (enabling Xwayland support)

  • Clone and build
    git clone --branch 0.18 https://gitlab.freedesktop.org/wlroots/wlroots.git
    cd wlroots/
    meson setup build
    ninja -C build
    

To enable Xwayland support edit meson.build and set x11-backend and xwayland to true in features

  • Install
    sudo ninja -C build install
    

dwl

  • Clone and install
    git clone --branch 0.7 https://codeberg.org/dwl/dwl.git
    cd dwl/
    sudo make install
    

Just use the command dwl to start