Skip to content
/ picket Public

Native linux screen color picker with custom format output

License

Notifications You must be signed in to change notification settings

rajter/picket

Repository files navigation


Picket
Picket

Screen color picker for linux with magnifier and custom/user defined formats.

FeaturesAuthorsLicense

Main Window

MainWindow

Features

Magnifier

Magnifier

CustomFormat

All the formats are stored in the directory {home}/.picket in the file formats.txt Color Formats consist of two components:

  1. [xxxx] - A unique indetifier
  2. xxxxxx... - The actual string that will be copied to the clipboard

Example

[RGB]$r$, g , b

output:

150, 250, 75

Lines that do not start with a [ character are ignored and can be used like comments

FormatEditor

Simple Format Editor

FormatEditor

Variables

Variable Description
r Red 0-255
g Green 0-255
b Blue 0-255
a Aplha 0-255
r d Red as double 0.0 - 1.0
g d Green as double 0.0 - 1.0
b d Blue as double 0.0 - 1.0
a d Alpha as double 0.0 - 1.0
r h e x Red as hex 00 - FF
g h e x Green as hex 00 - FF
b h e x Blue as hex 00 - FF
a h e x Alpha as hex 00 - FF
h Hue
s Saturation in %
l Lightness in %
s d Saturation as double
l d Lightness as double
c Cyan 0-100
m Magenta 0-100
y Yellow 0-100
k Key 0-100
c d Cyan as double 0.0 - 1.0
m d Magenta as double 0.0 - 1.0
y d Yellow as double 0.0 - 1.0
k d Key as double 0.0 - 1.0

Settings

SettingsWindow

Useful settings:

  • Start immediate pick - Starts the picking process when the application starts
  • Copy to clipboard after pick - Copies the selected format to clipboard after the pickcing process finished
  • Quit after pick - Quits the application after the picking process finishes

Shortcuts

MainWindow

Key Description
SPACE or p Starts the picker
TAB Copies the format to the clipboard
q Quit. Exit application.
1...9 Quick format selection

Picker

Key Description
up arrow or w Move up
down arrow or s Move down
left arrow or a Move left
right arrow or d Move right
e or + Increase magnifier size
q or - Decrease magnifier size
ESC Cancel pick

Packages

Arch User Repositories https://aur.archlinux.org/packages/picket/

Manual Install

Clone the repository to your local machine. git clone https://github.com/rajter/Picket.git
Change directory to Picket cd Picket
Create directory "build" mkdir build
Change directory to build cd build
Execute cmake for Release build cmake -DCMAKE_BUILD_TYPE=Release ..
Execute sudo make install to build and install it on your machine.

  git clone https://github.com/rajter/Picket.git
  cd Picket
  mkdir build
  cd build
  cmake -DCMAKE_BUILD_TYPE=Release ..
  sudo make install

Prerequisites

  • GCC - GNU Compiler
  • Gtkmm Gtkmm - GTK+ wrapper for c++

Built With

  • mINI - tiny, header only C++ library for manipulating INI files
  • Glade - Glade user interface designer

Authors

  • Andrija Rajter - Initial work - rajter

License

This project is licensed under the MIT License - see the LICENSE file for details