- C 99.8%
- Makefile 0.2%
|
|
||
|---|---|---|
| .gitignore | initial commit | |
| LICENSE | initial commit | |
| Makefile | mk: use -D_GNU_SOURCE | |
| README.md | README: oops | |
| stb_image.h | initial commit | |
| stb_image_resize2.h | import stb_image_resize2 | |
| stbi_alloc.h | import stb_image_resize2 | |
| wawa.c | remove mman.h include | |
| wlr-layer-shell-unstable-v1.xml | initial commit | |
wawa
A simple, hackable, and distinctive Wayland wallpaper setter utilizing
stb_image that targets wlr-layer-shell supported compositors, featuring
tiling, spreading across monitors, along with fill, fit and stretching the
wallpaper, with less SLOC than your average wallpaper setter.
In wawa, the image is loaded only for monitors that need it, and is immediately freed when all monitors have been configured; this keeps the memory usage of wawa extremely low (7x less than wbg, almost 24x less than swaybg), which may be a performance hit if youre constantly resizing the monitor. Please open an issue if this concerns you, in which case a specific flag can be added to keep the image in memory, unless it is a design flaw.
Comparison
swaybg uses cairo, and has a significant amount of customization, with a slightly larger codebase. wbg is more sophisticated, but is simpler than swaybg, and relies on speed using minimal third-party libraries for loading images, much like wbg. It also has support for defining multiple images for each monitor specified on the command line.
Unfortunately, wbg is so simple, while supporting modern libraries, it has only
two modes, fit (with -s flag) and fill (default), which makes it undesireable
for those who want to tile or etc.
No other wallpaper setter supports tiling out of the box.