Code Monkey home page Code Monkey logo

ricemood's Introduction

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

symbol description example
@ 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 : @


alias full
V Vibrant
LV LightVibrant
DV DarkVibrant
M Muted
LM LightMuted
DM DarkMuted

Pipe / Chaining

Symbol : >

alias description default parameter
ge grayscale No param
ne negate No param
ttc get title text color No param
btc get body text color No param
da darken 0.5
li lighten 0.5
de desaturate 0.5
sa saturate 0.5
wh whiten 0.5
bl blacken 0.5
fa fade 0.5
op opaquer 0.5
ro rotate 90
r red 255
g green 255
b blue 255
h hue 255
s saturationl 255
l lightness 255

Color Format

format example output parameter default
#FFFFFF none
hex FFFFFF None
rgb 255,255,255 separator ,
hsl 255,255,255 separator ,
r/g/b 255 None
h/s/l 255 None

Screenshots

These screenshots have the same configuration file sample1 sample1 sample1 sample1

ricemood's People

Contributors

f0x48 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.