[MIRROR] a suckless, x11 (and wayland) on screen pet
- C 98%
- Python 1.1%
- Makefile 0.5%
- Roff 0.4%
| pets | add neko animations | |
| .gitignore | update gitignore | |
| config.h | update logo, update default PET_ASSET_DIR path | |
| LICENSE | initial commit | |
| logo.png | rename xpet_logo*->logo_* | |
| logo_10x.png | rename xpet_logo*->logo_* | |
| Makefile | remove gnuisms from Makefile and link OpenBSD X11 libraries | |
| README.md | Update README to highlight config.h modifications | |
| toxpm.py | update toxpm script | |
| xpet.1 | add manpage | |
| xpet.c | remove MULTIPLE_PETS and PETS, adding flag instead | |
| xpet.h | update version number, add unfreeze_delay flag to pets struct | |
xpet is a small desktop pet for x11 written in c
build
dependencies:
- Xlib
- Xext
- Xpm
build with:
make
you SHOULD edit config.h before building to change default behaviour or key bindings. this includes changing the pet default directory
Run with:
./xpet
image structure
Animation frames are stored as XPM files under PET_ASSET_DIR, grouped by state name.
example:
neko/
idle/
0.xpm
...
5.xpm
sleeping/
0.xpm
...
5.xpm
walk_north/
0.xpm
1.xpm
...
each directory name matches an animation state defined in xpet.h.
frames are loaded in numeric order (0.xpm, 1.xpm, ...) until no more are found