1
0
Fork
You've already forked xpet
0
[MIRROR] a suckless, x11 (and wayland) on screen pet
  • C 98%
  • Python 1.1%
  • Makefile 0.5%
  • Roff 0.4%
Find a file
2025年12月20日 11:29:46 +00:00
pets add neko animations 2025年11月03日 14:24:20 +00:00
.gitignore update gitignore 2025年10月27日 15:30:46 +00:00
config.h update logo, update default PET_ASSET_DIR path 2025年11月21日 13:13:08 +00:00
LICENSE initial commit 2025年10月27日 13:51:14 +00:00
logo.png rename xpet_logo*->logo_* 2025年12月20日 11:29:17 +00:00
logo_10x.png rename xpet_logo*->logo_* 2025年12月20日 11:29:17 +00:00
Makefile remove gnuisms from Makefile and link OpenBSD X11 libraries 2025年12月20日 11:29:46 +00:00
README.md Update README to highlight config.h modifications 2025年11月06日 18:12:22 +00:00
toxpm.py update toxpm script 2025年11月03日 14:30:14 +00:00
xpet.1 add manpage 2025年11月03日 16:44:59 +00:00
xpet.c remove MULTIPLE_PETS and PETS, adding flag instead 2025年11月05日 13:21:32 +00:00
xpet.h update version number, add unfreeze_delay flag to pets struct 2025年11月05日 05:10:02 +00:00

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