0.0.2 • Published 4 years ago

ricemood v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

ricemood

this tool is not plug and play.

The purpose of this tool is to match your color scheme with your wallpaper.

How this work?
in regular configuration file you write color like this:
color0 #FFFFFF

ricemood take file containing something like this:
color0 ^r@Vibrant>lighten(10)^
parse that file and overwrite the original configuration file

With help of these amazing library:

  • node-vibrant for generating very meaningful colors from an image
  • color for providing functions to filter colors

Quick Link > Example File | My Own Setup

Installation : npm install -g ricemood

You can set it to your :

  1. i3 config
  2. terminal color scheme
  3. svg icon file
  4. The possibility are endless!

sample6

       _
      (_)
  _ __ _  ___ ___
 | '__| |/ __/ _ \          _
 | |  | | (_|  __/         | |
 |_|__|_|\___\___| ___   __| |
 | '_ ' _ \ / _ \ / _ \ / _' |
 | | | | | | (_) | (_) | (_| |
 |_| |_| |_|\___/ \___/ \__,_|

Usage: ricemood [options]

Options:
  -i, --image <path>   path to target image
  -f, --file <path>    path to file that gonna be parsed 
  -s, --swatch <path>  path to swatch json file 
  -a, --apply [file]   apply from configuration file
  -h, --help           output usage information
Opening tag : ^r  
Closing tag : ^

Function symbol

symboldescriptionexample
@Choose color@Vibrant
>Pipe color to various filter@Vibrant>lighten(0.2)>sa(0.5)
#Choose color output@Vibrant#rgb, @Vibrant#r

Color Name List

Prefix : @


aliasfull
VVibrant
LVLightVibrant
DVDarkVibrant
MMuted
LMLightMuted
DMDarkMuted

Pipe / Chaining

Symbol : >

aliasdescriptiondefault parameter
gegrayscaleNo param
nenegateNo param
ttcget title text colorNo param
btcget body text colorNo param
dadarken0.5
lilighten0.5
dedesaturate0.5
sasaturate0.5
whwhiten0.5
blblacken0.5
fafade0.5
opopaquer0.5
rorotate90
rred255
ggreen255
bblue255
hhue255
ssaturationl255
llightness255

Color Format

formatexample outputparameterdefault
#FFFFFFnone
hexFFFFFFNone
rgb255,255,255separator,
hsl255,255,255separator,
r/g/b255None
h/s/l255None

Screenshots

These screenshots have the same configuration file sample1 sample1 sample1 sample1