[go: up one dir, main page]

Skip to content

Pywal-like color pallete generator, but faster and in C

Notifications You must be signed in to change notification settings

danihek/hellwal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hellwal - fast, extensible colorscheme generator

  • TODO: config ( is it really needed? )
  • TODO: support for other OS's like Mac or Win

  • TODO: support for already built themes (like gruvbox etc.)
  • TODO: tweaking options for generated colors (func + dark-light mode
  • TODO: do more pleasant color schemes
  • TODO: print proper program usage
  • TODO: gen. colors
  • TODO: templating
  • TODO: parsing

How to use?

Just run hellwal -i [image] with your image/wallpaper file, and you will get your colorscheme from templates in ~/.cache/hellwal/ or other specified directory.

Look up for templating examples in ./templates folder, they look more-less like this:

# Main
background='%%color0.hex%%'
foreground='%%color15.hex%%'

# Path
wallpaper_path='%%wallpaper%%'

# Colors
color0='%%color0.hex%%'
color1='%%color1.hex%%'

# ... and so on and so fourth.

color15='%%color15.hex%%'

You can set specific color by writing number a from 0 to 15, and output format by writing '.' after (eg. .hex in colors0.hex or colors0.rgb)

Available color template formats:

  • .hex | ffffff
  • .rgb | r, g, b

Themes

You can set your own theme, re-run it anytime and apply to your config or other programs!

For example - gruvbox theme:

%% color0  = #282828 %%
%% color1  = #cc241d %%
%% color2  = #98971a %%
%% color3  = #d79921 %%
%% color4  = #458588 %%
%% color5  = #b16286 %%
%% color6  = #689d6a %%
%% color7  = #a89984 %%
%% color8  = #928374 %%
%% color9  = #fb4934 %%
%% color10 = #b8bb26 %%
%% color11 = #fabd2f %%
%% color12 = #83a598 %%
%% color13 = #d3869b %%
%% color14 = #8ec07c %%
%% color15 = #ebdbb2 %%

Save text above as file or take from this repo ./themes/gruvbox.hellwal and just run hellwal:

hellwal -theme ./themes/gruvbox.hellwal

I recommend to put all themes to ~/.config/hellwal/themes folder, because from there you can just provide theme name, and it will pick it up automatically, without specifying path. Of course if you want, you can also set different theme-folder path. For example:

hellwal -t ./themes/gruvbox.hellwal --theme-folder ~/dotfiles/configs/hellwal/

Modes

You can select --dark or --light mode on every color palette, no matter if it's generated from image or from theme file. Remember that --dark is regular sorted array, and --light is just reversed so using this mode will not save you from flashbacks.

But --light is really cool, I recommend to check it out :)

Special thanks:

Releases

No releases published

Packages

No packages published

Languages