All Projects → sdushantha → Farge

sdushantha / Farge

Licence: mit
Click on a pixel on your screen and show its color value

Programming Languages

shell
77523 projects
bash
514 projects

Projects that are alternatives of or similar to Farge

westford
Westford Wayland Compositor
Stars: ✭ 39 (-87.3%)
Mutual labels:  x11, wayland
ColorPickView
🐾一个自定义的颜色选择view
Stars: ✭ 19 (-93.81%)
Mutual labels:  color, colorpicker
console-logging
Better, prettier commandline logging for Python--with colors! 👻
Stars: ✭ 111 (-63.84%)
Mutual labels:  commandline, color
Swiftline
Swiftline is a set of tools to help you create command line applications.
Stars: ✭ 1,156 (+276.55%)
Mutual labels:  commandline, color
UnityColorPicker
A standalone color picker asset for Unity
Stars: ✭ 70 (-77.2%)
Mutual labels:  color, colorpicker
Console Logging
Better, prettier commandline logging for Python--with colors! 👻
Stars: ✭ 111 (-63.84%)
Mutual labels:  commandline, color
nextshot
A simple tool for taking screenshots on Linux and sharing via Nextcloud
Stars: ✭ 37 (-87.95%)
Mutual labels:  x11, wayland
Wallutils
🌆 Utilities for handling monitors, resolutions, wallpapers and timed wallpapers
Stars: ✭ 145 (-52.77%)
Mutual labels:  wayland, x11
Chalk
🖍 Terminal string styling done right
Stars: ✭ 17,566 (+5621.82%)
Mutual labels:  commandline, color
gobble
Rust rewrite of Devour
Stars: ✭ 23 (-92.51%)
Mutual labels:  x11, wayland
X11docker
Run GUI applications and desktops in docker and podman containers. Focus on security.
Stars: ✭ 3,797 (+1136.81%)
Mutual labels:  wayland, x11
X11vnc
a VNC server for real X displays
Stars: ✭ 272 (-11.4%)
Mutual labels:  wayland, x11
Kime
Korean IME
Stars: ✭ 208 (-32.25%)
Mutual labels:  wayland, x11
keyboard modifiers status
Gnome-Shell extension that shows keyboard modifiers status. It's useful when sticky keys are active.
Stars: ✭ 15 (-95.11%)
Mutual labels:  x11, wayland
Glmark2
glmark2 is an OpenGL 2.0 and ES 2.0 benchmark
Stars: ✭ 199 (-35.18%)
Mutual labels:  wayland, x11
global-color-picker
start the script and click anywhere to get rgb value at the cursor location
Stars: ✭ 31 (-89.9%)
Mutual labels:  color, colorpicker
Vkmark
Vulkan benchmark
Stars: ✭ 80 (-73.94%)
Mutual labels:  wayland, x11
Wayst
A simple terminal emulator
Stars: ✭ 117 (-61.89%)
Mutual labels:  wayland, x11
gnome-gesture-improvements
Touchpad gesture improvements for GNOME on Wayland/X11
Stars: ✭ 53 (-82.74%)
Mutual labels:  x11, wayland
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (-11.73%)
Mutual labels:  color, colorpicker


✨ Click on a pixel on your screen and show its color value ✨

farge is command line tool to select pixel on the screen and return the value of the color in either HEX or RGB format. The color code is automatically saved to the clipboard. If you want to save the color, farge is able to show the color in a image viewer with the color code on it. This tool is able to use a varaiety of image viewers like feh, mpv and sxiv. This tool works on X11 and Wayland.

Dependencies

  • bash
  • imagemagick
  • feh (Other: mpv or sxiv, but you must specify it using the --image-viewer flag)

If you use X11

If you use Wayland

Installation

Install as a package

farge is available in the Arch User Repository. If you use Arch or an Arch-based distro, you can use makepkg or your AUR helper of choice to install the farge-git package.

Install using make

# Clone the repo
$ git clone https://github.com/sdushantha/farge

# Change your current directory to farge
$ cd farge

# Install it
$ sudo make install

Install it locally

# Download the farge source code, save it as farge
# and make it executeable
$ curl -L https://git.io/raw-farge > farge && chmod +x farge

# Then move farge to somewhere in your $PATH
# Here is an example
$ mv farge ~/scripts/

Usage

$ farge --help
usage: farge [OPTIONS...]
 
┌─┐┌─┐┬─┐┌─┐┌─┐
├┤ ├─┤├┬┘│ ┬├┤ 
┴  ┴ ┴┴└─└─┘└─┘
Click on a pixel on your screen and show its color value

optional arguments:
   --help                show this help message and exit
   --no-preview          dont show the selected color in a preview window
   --no-color-code       dont write the color code on the preview window
   --rgb                 show the color code as RGB instead of HEX
   --image-viewer        image viewer to use to show the preview (feh, mpv, sxiv)
   --notify              send the color code as notification, where the icon is the selected color
   --expire-time         amount of time the notification should be visible, in milliseconds
   --stdout              output the color value to stdout
   --version             show the version of farge you are using

Tips

It would be smart to bind farge to a keybinding. Here is an example for i3wm users:

bindsym $mod+Shift+f --release exec farge

If you use a window manager, you can assign rules the windows so they are always floating. For i3wm user, put this in your config:

# Let the windows created by Farge be floating
for_window [instance="Farge"] floating enable

License

MIT License

Copyright © 2019 Siddharth Dushantha

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].