add striped neko variant from some ancient website

rip inu, I'm so sorry
thanks to https://users.frii.com/suzannem/neko/ for the bitmaps
This commit is contained in:
Virt 2025-04-14 20:50:25 +02:00
commit 7450f1bd18
4 changed files with 701 additions and 695 deletions

6
README
View file

@ -13,6 +13,12 @@ makes Neko being awake something you can look forward to.
It also adds support for multiple monitor setups as you can now specify the It also adds support for multiple monitor setups as you can now specify the
used output via the `--output` flag. used output via the `--output` flag.
In this fork, inu has also been removed (I'm so sorry...) and replaced with
a striped neko variant. So you can now choose between plain neko and striped
neko with the `--type` flag. The bitmaps were obtained and modified from here
(use the wayback machine to access it):
https://users.frii.com/suzannem/neko/
Refer to the man page or `--help` command to see how to use this fork and which Refer to the man page or `--help` command to see how to use this fork and which
options are new or no longer available. options are new or no longer available.

File diff suppressed because it is too large Load diff

View file

@ -15,7 +15,7 @@ wayneko \- Neko on Wayland but with phases
.SY wayneko .SY wayneko
.OP \-\-background\-colour 0xRRGGBB[AA] .OP \-\-background\-colour 0xRRGGBB[AA]
.OP \-\-outline\-colour 0xRRGGBB[AA] .OP \-\-outline\-colour 0xRRGGBB[AA]
.OP \-\-type neko|inu|random .OP \-\-type plain|striped|random
.OP \-\-idle-sleep seconds .OP \-\-idle-sleep seconds
.OP \-\-sleep-phase seconds-seconds .OP \-\-sleep-phase seconds-seconds
.OP \-\-awake-phase seconds-seconds .OP \-\-awake-phase seconds-seconds
@ -58,9 +58,9 @@ Alpha value is optional.
.RE .RE
. .
.P .P
\fB\-\-type\fR \fBneko\fR|\fBinu\fR|\fBrandom\fR \fB\-\-type\fR \fBplain\fR|\fBstriped\fR|\fBrandom\fR
.RS .RS
This option lets you choose between neko and her friend inu. This option lets you set the fur of neko. You can choose by a plain single color or stripes. Default is plain.
.RE .RE
. .
.P .P

View file

@ -32,7 +32,7 @@ const char usage[] =
" -h, --help\n" " -h, --help\n"
" --background-colour 0xRRGGBB[AA]\n" " --background-colour 0xRRGGBB[AA]\n"
" --outline-colour 0xRRGGBB[AA]\n" " --outline-colour 0xRRGGBB[AA]\n"
" --type neko|inu|random\n" " --type plain|striped|random\n"
" --idle-sleep seconds\n" " --idle-sleep seconds\n"
" --sleep-phase seconds-seconds\n" " --sleep-phase seconds-seconds\n"
" --awake-phase seconds-seconds\n" " --awake-phase seconds-seconds\n"
@ -55,8 +55,8 @@ pixman_image_t *neko_atlas_border_fill = NULL;
enum Type enum Type
{ {
NEKO = 0, PLAIN = 0,
INU = 2, STRIPED = 2,
}; };
enum Neko enum Neko
@ -78,7 +78,7 @@ enum Neko
const uint16_t animation_timeout = 200; /* milliseconds */ const uint16_t animation_timeout = 200; /* milliseconds */
size_t animation_ticks_until_next_frame = 10; size_t animation_ticks_until_next_frame = 10;
enum Neko current_neko = NEKO_STARE; enum Neko current_neko = NEKO_STARE;
enum Type type = NEKO; enum Type type = PLAIN;
bool follow_pointer = false; // TODO: implement this again bool follow_pointer = false; // TODO: implement this again
bool recreate_surface_on_close = false; bool recreate_surface_on_close = false;
enum zwlr_layer_shell_v1_layer layer = ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM; enum zwlr_layer_shell_v1_layer layer = ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM;
@ -1442,12 +1442,12 @@ int main (int argc, char *argv[])
if ( t == NULL ) if ( t == NULL )
return EXIT_FAILURE; return EXIT_FAILURE;
if ( strcmp(t, "neko") == 0 ) if ( strcmp(t, "plain") == 0 )
type = NEKO; type = PLAIN;
else if ( strcmp(t, "inu") == 0 ) else if ( strcmp(t, "striped") == 0 )
type = INU; type = STRIPED;
else if ( strcmp(t, "random") == 0 ) else if ( strcmp(t, "random") == 0 )
type = rand() % 2 == 0 ? NEKO : INU; type = rand() % 2 == 0 ? PLAIN : STRIPED;
else else
{ {
fprintf(stderr, "ERROR: Unknown argument '%s' for flag '--type'.\n", t); fprintf(stderr, "ERROR: Unknown argument '%s' for flag '--type'.\n", t);