Skip to content

lokesh-krishna/rang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rang

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.

Installation

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.

Usage

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.

Credits

  • Inspired by Manas's pluck
  • Matteo from the Signal Community for a lot of help improving the script

About

A color picker for wayland

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages