diff --git a/.gitignore b/.gitignore index 12ddb79..eab53f8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -kc +kfc diff --git a/Makefile b/Makefile index 07580ad..840270f 100644 --- a/Makefile +++ b/Makefile @@ -3,21 +3,21 @@ PREFIX ?= /usr BINDIR ?= $(PREFIX)/bin CC ?= gcc -all: kc +all: kfc -kc: kc.c kc.h Makefile +kfc: kfc.c kfc.h Makefile $(CC) -O3 $(CFLAGS) -o $@ $< -lX11 $(LDFLAGS) install: all - install -Dm755 kc $(DESTDIR)$(BINDIR)/kc - mkdir -p $(DESTDIR)/usr/share/kc - cp -r palettes $(DESTDIR)/usr/share/kc + install -Dm755 kfc $(DESTDIR)$(BINDIR)/kfc + mkdir -p $(DESTDIR)/usr/share/kfc + cp -r palettes $(DESTDIR)/usr/share/kfc uninstall: - rm -f $(DESTDIR)$(BINDIR)/kc - rm -rf $(DESTDIR)/usr/share/kc + rm -f $(DESTDIR)$(BINDIR)/kfc + rm -rf $(DESTDIR)/usr/share/kfc clean: - rm -f kc *.o + rm -f kfc *.o .PHONY: all install uninstall clean diff --git a/README b/README index ea3162c..744cae8 100644 --- a/README +++ b/README @@ -1,6 +1,6 @@ -kc +kfc -KISS colors, a terminal-emulator color palette setter written in C and designed +kiss for colors, a terminal-emulator color palette setter written in C and designed for KISS Linux. @@ -14,7 +14,7 @@ Linux have been tested at this time: - simple terminal, st [2] -Other than a terminal emulator and C compiler (e.g. gcc), KISS Colors has no +Other than a terminal emulator and C compiler (e.g. gcc), the application has no other dependencies. Note: I apologize for the "ugliness" of the code at this time. I hope to address @@ -26,21 +26,21 @@ INSTALLATION Building and installing from source: -$ git clone https://github.com/mcpcpc/kc.git -$ cd kc/ +$ git clone https://github.com/mcpcpc/kfc.git +$ cd kfc/ $ make $ make install Installing on KISS Linux: -$ kiss b kc && kiss i kc +$ kiss b kfc && kiss i kfc USAGE ----- -kc [-s palette|-L|-r] [l|-v|-p] +kfc [-s palette|-L|-r] [l|-v|-p] -s palette Select a palette -l List all palettes -p Print current palette diff --git a/kc.c b/kfc.c similarity index 94% rename from kc.c rename to kfc.c index 3bb9e23..03c809f 100644 --- a/kc.c +++ b/kfc.c @@ -6,15 +6,15 @@ #include #include #include -#include "kc.h" +#include "kfc.h" int find_palettes(void) { - if ( access("/usr/share/kc/palettes", F_OK) == 0 ) + if ( access("/usr/share/kfc/palettes", F_OK) == 0 ) { - strcpy(p.SEQ, "/usr/share/kc/palettes"); + strcpy(p.SEQ, "/usr/share/kfc/palettes"); return 0; } @@ -172,10 +172,10 @@ main(int argc, char **argv) fprintf(stderr, "XDG_CONFIG_HOME not defined\n"); exit(2); } - strcat(p.CONF, "/kc"); + strcat(p.CONF, "/kfc"); if ( mkdir(p.CONF,0777) == 0 ) { - printf("Created 'kc' directory in XDG_CONFIG_HOME."); + printf("Created 'kfc' directory in XDG_CONFIG_HOME."); } sprintf(p.CCUR, "%s/current", p.CONF); sprintf(p.CSEQ, "%s/sequence", p.CONF); @@ -203,7 +203,7 @@ main(int argc, char **argv) p.MODE = "light"; break; case 'v': - printf("0.0.6\n"); + printf("0.0.7\n"); break; case 'h': p.errf++; @@ -227,7 +227,7 @@ main(int argc, char **argv) if (p.errf) { fprintf(stderr, "\ -usage: kc [-s palette|-r|-L] [l|-v|-p]\n \ +usage: kfc [-s palette|-r|-L] [l|-v|-p]\n \ -s palette Select a palette\n \ -l List all palettes\n \ -p Print current palette\n \ diff --git a/kc.h b/kfc.h similarity index 100% rename from kc.h rename to kfc.h