• Stars
    star
    480
  • Rank 91,562 (Top 2 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 5 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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


โœจ 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, nsxiv and sxiv. This tool works on X11 and Wayland.

Dependencies

  • bash
  • imagemagick
  • feh (Other: mpv, nsxiv 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, nsxiv, 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

More Repositories

1

tmpmail

A temporary email right from your terminal written in POSIX sh
Shell
3,841
star
2

wifi-password

Quickly fetch your WiFi password and if needed, generate a QR code of your WiFi to allow phones to easily connect
Python
2,905
star
3

tmpsms

A temporary SMS utility right from your terminal written in POSIX sh
Shell
1,039
star
4

qr-filetransfer

Transfer files over WiFi between your computer and your smartphone from the terminal
Python
969
star
5

fontpreview

Highly customizable and minimal font previewer written in bash
Shell
912
star
6

recycle-bin-themes

Silly icons for the Windows Recycle Bin
PowerShell
476
star
7

snaprecovery

Recover old Snaps that have โ€œdisappearedโ€ from Snapchat
Shell
427
star
8

soundcloud-dl

๐ŸŽต Download SoundCloud music at 128kbps with album art and tags
Python
320
star
9

kunst

Download and display album art or display embedded album art
Shell
309
star
10

dora

Find exposed API keys based on RegEx and get exploitation methods for some of keys that are found
Python
307
star
11

facebook-dl

๐Ÿ“ผ Very minimal Facebook downloader written in 28 lines of Python code (not including comments and blank spaces)
Python
237
star
12

gitdir

Download a single directory/folder from a GitHub repo
Python
224
star
13

dotfiles

my dotfiles
Lua
223
star
14

svart

Change between dark/light mode depending on the ambient light intensity
Python
167
star
15

fileinfo

๐Ÿ“„Get information on over 10,000 file extensions right from the terminal
Python
111
star
16

meobrute

Automate the process of brute forcing the My Eyes Only pin code on Snapchat
Shell
93
star
17

insta-dl

๐Ÿ“ท Download Instagram images from a public user.
Python
93
star
18

ff-pdf

Turn a Firefox profile into a standalone PDF reader app
Shell
87
star
19

pyradio

๐Ÿ“ป Play your favorite radio station from the terminal
Python
74
star
20

snapchat

Messing around with Snapchat's web APIs
Python
68
star
21

pine

๐Ÿ“ท A simple image to text OCR scanner for macOS
Python
55
star
22

down

โ˜‘๏ธ A CLI tool to check if a site or a list of sites are down or up
Python
54
star
23

vsco-dl

๐Ÿ“ท Download all of the images and videos from a VSCO user
Python
39
star
24

getroot

๐Ÿ› ๏ธ Tool to bypass my school's security system to get sudo privileges on MacOS
Shell
38
star
25

bed

๐Ÿงฉ A very simple command line Browser Extension Downloader
Python
34
star
26

macbook-keyboard-visualizer

๐Ÿ”† Audio visualizer using the MacBook keyboard lights
Python
31
star
27

dark-mode

๐ŸŒ— Control the macOS dark mode from the terminal
Python
22
star
28

awesome-bounty-rewards

A curated list of BBPs and VDPs that offer awesome/unique rewards
7
star
29

datainnbrudd.no

Overivew of all cyber incidients in Norway
MDX
7
star
30

top-secret

highly confiential top secret repository
Shell
6
star
31

sdushantha.github.io

HTML
4
star
32

bacit-php

PHP work for uni
PHP
1
star
33

bacit

IT og informasjonssystemer
Java
1
star
34

w

w
HTML
1
star
35

myquote

En teste modul 1, del 2 for is-105 faget
Go
1
star