Skip to content

Commit

Permalink
squash refactoring, bump version to 0.1.2
Browse files Browse the repository at this point in the history
kfc: change SEQ to SEQUENCE

kfc: remove setenv() function

kfc: cleanup and commenting

kfc: remove randf

kfc: cleanup

kfc: cleanup

remove kfc.h

replace system() with popen()

README Update

README Update

fix '/' allocated memory, refactor len variable

changed len and fp from global to local variables

change  from global to local variable

change *flag variables to local variables

free  at end of main()

changed  and  from global to local variables

add default directory if XDG_CONFIG_HOME does not exist

realloc memory for sel in random_palette()

change  from gloval to local variable

change sval from global to local variable

realloc()  memory when selecting a palette

fix random palette failures

kfc cleanup

change getenv() to threadsafe operation

main(): free  variable

Update README to thank E5ten for his help

formatting cleanup

Update README

remove free(tmp) since it's an invalid pointer

Add files via upload

cleanup formatting

rename screenshot image in docs/ directory

fix sel malloc()

fix sel malloc()

fix realloc

cleanup
  • Loading branch information
mcpcpc committed Jul 28, 2020
1 parent 8c6b125 commit d658243
Show file tree
Hide file tree
Showing 5 changed files with 207 additions and 182 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CC ?= gcc

all: kfc

kfc: kfc.c kfc.h Makefile
kfc: kfc.c Makefile
$(CC) -O3 $(CFLAGS) -o $@ $< -lX11 $(LDFLAGS)

install: all
Expand Down
18 changes: 10 additions & 8 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ windows. This allows one to achieve consistent colors across all terminal
utilities and applications. This application has similar functionality to okpal
but is designed with execution speed in mind. There are currently 300 light and
dark color palettes offered at this time that can be applied and quickly swapped
out for others.
out for others.


COMPATIBILITY
-------------

Compatibility with the following terminator-emulators on KISS Linux have been
tested and confirmed:
Compatibility with the following terminator-emulators have been tested and
confirmed on KISS Linux [1]:

- simple terminal, st [1]
- alacritty [2]
- simple terminal, st [2]
- alacritty [3]


DEPENDENCIES
Expand All @@ -44,7 +44,8 @@ Building and installing from source:

Installing on KISS Linux:

kiss b kfc && kiss i kfc
kiss b kfc
kiss i kfc


USAGE
Expand Down Expand Up @@ -97,8 +98,9 @@ in the docs/ folder) by creating a Pull Request.
REFERENCES
----------
[0] https://github.com/dylanaraps/okpal
[1] Note that background, foreground and cursor color setting does not work
[1] https://k1ss.org
[2] Note that background, foreground and cursor color setting does not work
without applying the 'OSC 10 11 12' patch.
https://st.suckless.org
[2] Confirmed to work in wayland (per sdsddsd1).
[3] Confirmed to work in wayland (per sdsddsd1).
https://github.com/mcpcpc/kfc/issues/1#issuecomment-657241830
Binary file added docs/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d658243

Please sign in to comment.