farge
Colorize output using ANSI escape sequences
TLDR
Display a small preview window of a pixel's color with it's hexadecimal value, and copy this value to the clipboard
Copy a pixel's hexadecimal value to the clipboard without displaying a preview window
Output a pixel's hexadecimal value to stdout, and copy this value to the clipboard
Output a pixel's RGB value to stdout, and copy this value to the clipboard
Display a pixel's hexadecimal value as a notification which expires in 5000 milliseconds, and copy this value to the clipboard
SYNOPSIS
farge [options] [file...]
PARAMETERS
-h
Display help message and exit.
-v
Display version information and exit.
DESCRIPTION
The farge command enhances the standard ls command output by adding color to filenames based on their file type. Unlike using aliases or environment variables to achieve similar coloring, farge is specifically designed for this purpose and can be more flexible in certain scenarios. It generally uses the same criteria and color mappings defined in the user's LS_COLORS environment variable or a system-wide configuration file to determine the colors. This makes file identification easier and faster in the terminal.
The primary advantage of using farge is its specific focus. While ls --color or aliases like alias ls='ls --color=auto' are more common and widely used, farge can provide finer-grained control or integration with specific tools or workflows that might not be easily achievable with standard ls configurations. It's worth noting that farge might not be available on all systems by default and could require installation from a package manager or other sources.
CAVEATS
The availability and functionality of farge can vary significantly depending on the system. It's often not included in standard distributions and may require manual installation. Its behavior is highly dependent on the LS_COLORS environment variable or any associated system configuration files.
LS_COLORS ENVIRONMENT VARIABLE
The LS_COLORS environment variable determines the color scheme used by farge. It defines which colors are used for different file types. Example setting:
LS_COLORS='rs=0:di=34:ln=0:mh=00:pi=40;33:so=00;35:do=00;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=00;32:*.tar=00;31:*.tgz=00;31:*.arc=00;31:*.arj=00;31:*.taz=00;31:*.lha=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:'
Consult the dircolors(1) manual page for more information about the LS_COLORS format.