Skip to content

UsingFromOtherApplicationsOrScripts

Albertas Vyšniauskas edited this page Apr 15, 2016 · 4 revisions

Using color picker from other applications or scripts

gpick -p or gpick --pick

Checks if Gpick is currently running and either starts it in notification area icon mode, or uses currently running program instance. Once Gpick is running, creates floating color picker window which follows mouse pointer until either Escape key is pressed to cancel, or primary mouse button is pressed to pick a color. The picked color is only copied to clipboard if Copy to clipboard checkbox is enabled in Floating color picker behavior section of program settings. This command returns immediately if another Gpick instance is found, or blocks until Gpick is closed if a new instance is created.

gpick -s or gpick --single

Available only in version 0.2.6 which is not yet released

Starts Gpick in invisible mode and creates floating color picker window which follows mouse pointer until either Escape key is pressed to cancel, or primary mouse button is pressed to pick a color. The picked color is copied to clipboard and program is closed after a small delay to give enough time for clipboard managers to retrieve and store clipboard content.

Clone this wiki locally