TUI Color picking tool
  • C++ 98.5%
  • Makefile 1.5%
Find a file
2025-08-30 00:25:50 +02:00
img Initial commit 2025-08-11 00:01:16 +02:00
src Bumped version up to v1.1.0 2025-08-30 00:13:59 +02:00
.gitignore Initial commit 2025-08-11 00:01:16 +02:00
LICENSE Create LICENSE 2025-08-12 20:20:39 +02:00
Makefile Added install and uninstall functionality to make 2025-08-13 09:52:26 +02:00
README.md Update README.md 2025-08-30 00:25:50 +02:00

clid - Command line Color Picker

clid allows you to view, choose and convert colors in RGB, HEX, HSL and CMYK formats using a simple tui.

Features

  • No external librarys needed.
  • TUI Coose color dialog.
  • View colors in your terminal.
  • Change TUI scaling.
  • Use output in your own scripts or tools.
  • Suports RGB, HEX, HSL, CMYK

Usage

# Run clid in normal mode. This lets you choose a color and outputs it to stdout on quit.
$ clid

# Same as before but output in cmyk format.
$ clid --format=cmyk

# You can pipe the output into your clipboard:
$ ./clid --format=hex | wl-copy            # For Weyland
$ ./clid --format=hex | xsel -i -b         # For X11
$ ./clid --format=hex | xclip -i -sel clip # For X11

# Or capture it in a variable (you can add options here as well, like ./clid -W):
$ color=$(./clid)             # Preferred.
$ read -r color < <(./clid)   # Works in bash, ksh, zsh, ..., but **not sh**

# Use --help to get a list of all arguments and view tui inputs.
$ clid --help

Build & Install

# Clone clid repo
$ git clone https://github.com/iinsertNameHere/clid.git
$ cd clid

# Build using make
$ make

# Install using make
$ make install

# Run program
$ clid

Uninstall:

$ make uninstall

Update

# Navigate to repo folder and pull latest changes
$ git pull origin main

# Uninstall currently installed version
$ make uninstall

# Install & build new version
$ make
$ make install

Showcase