1
0
Fork
You've already forked meway
0
forked from anormaltwig/meway
Moving creatures on wayland
  • C 98.6%
  • GLSL 0.8%
  • Makefile 0.6%
2026年06月26日 05:37:56 -04:00
res First Commit 2026年01月08日 11:58:59 -05:00
src move sprite shader compilation to init 2026年06月26日 05:37:56 -04:00
.clangd First Commit 2026年01月08日 11:58:59 -05:00
.gitignore First Commit 2026年01月08日 11:58:59 -05:00
LICENSE First Commit 2026年01月08日 11:58:59 -05:00
Makefile formatting fixes 2026年06月26日 05:33:55 -04:00
README.md depenencies 2026年01月09日 11:02:39 -05:00

Meway

Moving creatures around a monitor on wayland with wlr-layer-shell.

Compatibility

I don't know if this works on every compositor.

Tested Compositors

  • Niri 25.11
  • Sway 1.11
  • Wayfire 0.10.0

Compilation

Dependencies

  • egl
  • wayland-client
  • wayland-egl
$ make

Configuration

Example config.

monitor = "DP-1"
sprite = "/path/to/spritesheet.qoi"
walk = [0, 1, 0, 2]
climb = [11, 12, 11, 13]
fidget = [14, 15]
fall = [3, 17, 18]
held = [4, 6, 8, 5, 7, 9]
sit = 10
nap = 20

The sprite entry is a link to a QOI image spritesheet that needs height and width divisible by 128. Each sprite is 128x128 pixels laid out in a grid with the top left being 0. See example-sheet.qoi for an example/template.

Notes

Inspired by the Shimeji java program.

This works by making a small overlay layer surface, and setting the margins from the bottom left of the monitor based on the x and y position of the creature.