Skip to content

Files

eyedropper

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 5, 2021
May 22, 2021
May 22, 2021
Jan 5, 2021
Jan 5, 2021
Jan 5, 2021
Jan 5, 2021
Jan 5, 2021
Jan 5, 2021
May 22, 2021

Eyedropper

Simple and convenient tool to identify the hex value of any color on the screen. Simply click on the icon:

Your mouse will become a crosshair. Click on any color you desire and both the color and the hex value will be displayed.

Should you select the color of your bar, you will not be able to see the icon (as the icon and the bar are the same color), but you will still be able to read the hex value

Dependencies

  1. Ensure grabc is installed. For debian:
$ sudo apt-get install grabc

For more information, visit muquit/grabc

  1. fontawesome

Optional Dependencies

  1. xclip - for copying the value to clipboard in i3

  2. slurp, grim, imagemagick - for picking the color in SwayWM

  3. wl-clipboard - for copying the value to clipboard in SwayWM

Installation

  1. Copy script to your directory of choice
  2. Give it execution permission (chmod +x eyedropper)
  3. Add the following blocklet to your i3blocks.conf:

Configuring i3blocks

[eyedropper]
command=$SCRIPT_DIR/eyedropper
full_text=<span foreground="#ffffff"></span>
instance=#ffffff
markup=pango
#CLIPBOARD=true
#SWAY=true
  • Change the "foreground" value in "full_text" to change the color of the initial eyedropper icon
  • Change the "instance" value to change the color of the hex value displayed

Two environment variable configuration options are supported:

  1. CLIPBOARD=true - Copy the color value to the clipboard in addition to updating the string
  2. SWAY=true - Do color picking in a way that works when running in SwayWM (Wayland)

Sample Look