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
6
README
6
README
|
@ -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
|
||||
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
|
||||
options are new or no longer available.
|
||||
|
||||
|
|
1366
neko-bitmap.xbm
1366
neko-bitmap.xbm
File diff suppressed because it is too large
Load diff
|
@ -15,7 +15,7 @@ wayneko \- Neko on Wayland but with phases
|
|||
.SY wayneko
|
||||
.OP \-\-background\-colour 0xRRGGBB[AA]
|
||||
.OP \-\-outline\-colour 0xRRGGBB[AA]
|
||||
.OP \-\-type neko|inu|random
|
||||
.OP \-\-type plain|striped|random
|
||||
.OP \-\-idle-sleep seconds
|
||||
.OP \-\-sleep-phase seconds-seconds
|
||||
.OP \-\-awake-phase seconds-seconds
|
||||
|
@ -58,9 +58,9 @@ Alpha value is optional.
|
|||
.RE
|
||||
.
|
||||
.P
|
||||
\fB\-\-type\fR \fBneko\fR|\fBinu\fR|\fBrandom\fR
|
||||
\fB\-\-type\fR \fBplain\fR|\fBstriped\fR|\fBrandom\fR
|
||||
.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
|
||||
.
|
||||
.P
|
||||
|
|
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