# labwc
- [1. What is this?](#1-what-is-this)
- [2. Build](#2-build)
- [3. Install](#3-install)
- [4. Configure](#4-configure)
- [5. Run](#5-run)
- [6. Integrate](#6-integrate)
- [7. Acceptance Criteria](#7-acceptance-criteria)
## 1. What is this?
Labwc is a wlroots-based stacking compositor for Wayland.
It has the following aims:
- Be light-weight, small and fast.
- Use [openbox-3.4](https://github.com/danakj/openbox) specification for configuration and themes.
- Keep [feature set](https://github.com/johanmalm/labwc/wiki/Acceptance-criteria) small (ca 40% of openbox).
- Where practicable, use clients for wall-paper, panel, screenshots, and so on.
- Stay in keeping with wlroots and sway in terms of approach and coding style.
[Video (3:42) showing features](https://youtu.be/rE1bQjSVJzg)
## 2. Build
meson build/
ninja -C build/
Dependencies include:
- meson, ninja, gcc/clang
- wlroots (master)
- wayland (>=1.19)
- wayland-protocols
- libinput (>=1.14)
- libxml2
- cairo, pango, glib-2.0
- xkbcommon
- xwayland, xcb (optional)
Disable xwayland with `meson -Dxwayland=disabled build/`
For further details see [wiki/Build](https://github.com/johanmalm/labwc/wiki/Build).
## 3. Install
See [wiki/Install](https://github.com/johanmalm/labwc/wiki/Install).
## 4. Configure
If you want to override the defaults, create the following files:
- ~/.config/labwc/[rc.xml](docs/rc.xml)
- ~/.config/labwc/[menu.xml](docs/menu.xml)
- ~/.local/share/themes/\/openbox-3/[themerc](docs/themerc)
See full details in the following:
- [labwc(1)](https://raw.githubusercontent.com/johanmalm/labwc/master/docs/labwc.1.scd)
- [labwc-config(5)](https://raw.githubusercontent.com/johanmalm/labwc/master/docs/labwc-config.5.scd)
- [labwc-theme(5)](https://raw.githubusercontent.com/johanmalm/labwc/master/docs/labwc-theme.5.scd)
- [labwc-actions(5)](https://raw.githubusercontent.com/johanmalm/labwc/master/docs/labwc-actions.5.scd)
## 5. Run
./build/labwc [-s ]
Click on the background to launch a menu.
If you have not created an rc.xml configuration file, default keybinds will be:
- Alt-tab: cycle window
- Alt-F3: launch bemenu
- Alt-escape: exit
## 6. Integrate
Suggested apps to use with labwc:
- Screen-shooter: [grim](https://github.com/emersion/grim)
- Screen-recorder: [wf-recorder](https://github.com/ammen99/wf-recorder)
- Background image: [swaybg](https://github.com/swaywm/swaybg)
- Panel: [waybar](https://github.com/Alexays/Waybar)
- Launchers: [bemenu](https://github.com/Cloudef/bemenu), [fuzzel](https://codeberg.org/dnkl/fuzzel), [wofi](https://hg.sr.ht/~scoopta/wofi)
- Output managers: [kanshi](https://github.com/emersion/kanshi.git), [wlr-randr](https://github.com/emersion/wlr-randr.git)
## 7. Acceptance Criteria
A lot of emphasis is put on code simplicy when considering features. The main
development effort if focused on producing a solid foundation for a stacking
compositor rather than quickly adding configuration and theming options.
See [wiki/Acceptance-criteria](https://github.com/johanmalm/labwc/wiki/Acceptance-criteria)
for a full down-selection.
High-level summary of progress:
- [x] Optionally support xwayland
- [x] Parse openbox config files (rc.xml, autostart, environment)
- [x] Parse openbox themes files and associated xbm icons
- [x] Support maximize, iconify, close buttons
- [x] Catch SIGHUP to re-load config file and theme
- [x] Support layer-shell protocol
- [x] Support damage tracking to reduce CPU usage
- [x] Parse menu.xml to generate a basic root-menu
- [x] Support wlr-output-management protocol
- [ ] Support HiDPI
- [ ] Support foreign-toplevel protocol (e.g. to integrate with wlroots panels/bars)
- [ ] Support on-screen display (osd), for example to support alt-tab window list
- [ ] Support libinput configuration (tap is enabled for the time being)
The following items are out-of-scope:
- Icons (except window buttons)
- Animations
- Gradients for decoration and menus
- Any theme option not required to reasonably render common themes (amazingig
how few options are actually required).
- Any configuration option not required to provide a simple openbox-like experience