A color picker for wayland
rang
is a simple color picker script that I use on my system. It relies upon the following to do its thing:
- slurp to pick the spot on your screen
- grim to generate an image of that pixel
- imagemagick to extract the color code
- wl-copy to copy the color code to the clipboard
- notify-send to generate a notification
DISCLAIMER: The script is for my personal use and I figured it could serve as a base for anyone interested in building something more portable or configurable. It doesn't even test for the dependencies so make sure you already have them installed before you use this. I welcome to any PRs or advice to make this more portable or configurable.
Just move rang.sh
to anywhere on your $PATH
and launch it by binding it to a key or create a .desktop
file and launch it using your preferred launcher.
Launching rang
launches grim with slurp to pick any spot on your screen and then prints a fancy notification while also copying the hex code to the clipboard.