forked from anormaltwig/meway
Moving creatures on wayland
- C 98.6%
- GLSL 0.8%
- Makefile 0.6%
| res | First Commit | |
| src | move sprite shader compilation to init | |
| .clangd | First Commit | |
| .gitignore | First Commit | |
| LICENSE | First Commit | |
| Makefile | formatting fixes | |
| README.md | depenencies | |
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
eglwayland-clientwayland-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.