Skip to content
/ mcpick Public

Light weight Terminal User Interface (TUI) to pick material colors written by Go.

License

Notifications You must be signed in to change notification settings

tenkoh/mcpick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcpick

Light weight Terminal User Interface (TUI) to pick material colors. You do NOT need to take your hands off the keyboard to pick colors.

screenshot

Getting started

Here, I introduce two methods. If go is installed, the first method would be more convenient.

Method 1: With go install

  1. go install github.com/tenkoh/mcpick
  2. add $GOPATH/bin to $PATH

Method 2: Manual install

  1. Save the binary file mcpick in any directory. The binary files are listed on release page.
  2. Add the path to PATH.

Usage

  1. Select color and light which you like.
    • Move up/down by k / j or arrow keys
    • Switch color and light by Enter or Tab
  2. Select output style. Note: after hit the key, this app immediately closes.
    • w: web color style (#ffffff)
    • r: rgb color style (255, 255, 255)
  • Hit b to switch background color.
  • Hit Ctrl + C to quit.

Advanced usage

This app JUST outputs color code to the terminal. You can combinate this app with others like pbcopy in MacOS or clip in Windows.

Example: MacOS

The example below copies color code to the clipboard. The most convenient way is make alias in your .bashrc or .zshrc.

alias mcp='mcpick | pbcopy'

Example: Windows

The example below copies color code to the clipboard. The most convenient way is make .bat file and add the path to PATH.

# mcp.bat
mcpick | clip

Contribute

I'm really welcome your contribution.

About

Light weight Terminal User Interface (TUI) to pick material colors written by Go.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published