forked from virt-mirrors/wayneko
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:
parent
3dc3ff4894
commit
7450f1bd18
4 changed files with 701 additions and 695 deletions
18
wayneko.c
18
wayneko.c
|
@ -32,7 +32,7 @@ const char usage[] =
|
|||
" -h, --help\n"
|
||||
" --background-colour 0xRRGGBB[AA]\n"
|
||||
" --outline-colour 0xRRGGBB[AA]\n"
|
||||
" --type neko|inu|random\n"
|
||||
" --type plain|striped|random\n"
|
||||
" --idle-sleep seconds\n"
|
||||
" --sleep-phase seconds-seconds\n"
|
||||
" --awake-phase seconds-seconds\n"
|
||||
|
@ -55,8 +55,8 @@ pixman_image_t *neko_atlas_border_fill = NULL;
|
|||
|
||||
enum Type
|
||||
{
|
||||
NEKO = 0,
|
||||
INU = 2,
|
||||
PLAIN = 0,
|
||||
STRIPED = 2,
|
||||
};
|
||||
|
||||
enum Neko
|
||||
|
@ -78,7 +78,7 @@ enum Neko
|
|||
const uint16_t animation_timeout = 200; /* milliseconds */
|
||||
size_t animation_ticks_until_next_frame = 10;
|
||||
enum Neko current_neko = NEKO_STARE;
|
||||
enum Type type = NEKO;
|
||||
enum Type type = PLAIN;
|
||||
bool follow_pointer = false; // TODO: implement this again
|
||||
bool recreate_surface_on_close = false;
|
||||
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 )
|
||||
return EXIT_FAILURE;
|
||||
|
||||
if ( strcmp(t, "neko") == 0 )
|
||||
type = NEKO;
|
||||
else if ( strcmp(t, "inu") == 0 )
|
||||
type = INU;
|
||||
if ( strcmp(t, "plain") == 0 )
|
||||
type = PLAIN;
|
||||
else if ( strcmp(t, "striped") == 0 )
|
||||
type = STRIPED;
|
||||
else if ( strcmp(t, "random") == 0 )
|
||||
type = rand() % 2 == 0 ? NEKO : INU;
|
||||
type = rand() % 2 == 0 ? PLAIN : STRIPED;
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "ERROR: Unknown argument '%s' for flag '--type'.\n", t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue