Swatch Sniper

@xzenile / swatch-sniperv1.1.0Public

Grab the color under your pointer into a palette strip, then copy any swatch's hex code from a menu.

Files

Version 1.1.0 (current)

MARKETPLACE.md3.2 KB

# GFX · Swatch Sniper

Grab the color under your pointer into a palette strip, then copy any swatch's hex code from a menu.

**Installs as:** `packages\swatch-sniper\` (a Rebind package)  
**Works in:** Every app (it works no matter which window is in front)  
**Permissions it asks for:** screen,clipboard:write  

## Turn it on

Every script in this pack is installed switched off. Open Rebind, find **GFX · Swatch Sniper** in your scripts list (inside the `packages` folder), and start it. Stop it the same way.

## How to use it

1. Point at any color on screen and press **Ctrl+Alt+G** to add it to the palette strip. The newest color is on the left.
2. Grabbing a color you already have moves it to the front. It reads only the one pixel under the pointer and never reads the clipboard.
3. Press **Ctrl+Alt+Shift+F7** for a menu of your swatches. Press Enter or 1 to 9 to copy that color code in your **Copy as** format, Esc to close, or pick Clear palette.
4. Set the strip size, how many swatches it keeps and the copy format in Options.
5. On a Mac, turn on screen capture in Rebind's Settings and allow Screen Recording first.

## Change a hotkey

Press **LCtrl+LAlt+LShift+Z** to open **Edit hotkeys**. Pick the action, then press the new key. Esc cancels, a plain left click can't be a hotkey, and if the key is already used by another action in this script you can swap the two. **Reset all to defaults** puts every key back.
You can also change keys and settings in the script's **Options** tab in Rebind.
The Edit hotkeys board lists: Grab color, Palette menu, Edit hotkeys. Any other key or button is changed in Options.

## Options

- **Grab color** (default LCtrl+LAlt+G): Adds the color under the pointer.
- **Palette menu** (default LCtrl+LAlt+LShift+F7): Opens the menu to copy a swatch.
- **Edit hotkeys** (default LCtrl+LAlt+LShift+Z): Opens the Bind Board over any app: pick a hotkey, then press the new key.
- **Copy as** (default #RRGGBB; choices: #RRGGBB, RRGGBB, #rrggbb, rgb(r, g, b))
- **Swatches kept** (default 10, range 4 to 16 in steps of 1): The oldest swatch drops off when the strip is full.
- **Remember the palette** (default on): Saves the palette in the script's data folder so it survives a restart.
- **Show the palette strip** (default on)
- **Swatch size** (default 28 px, range 16 to 48 in steps of 2)
- **Strip position** (default bottom; choices: bottom, bottom-left, bottom-right, top, top-left, top-right, left, right)
- **Reset to defaults**: Resets the Palette and Strip settings. Hotkeys reset from Edit hotkeys.

## Good to know

- Windows and macOS. On macOS, pixel reads need Screen capture turned on in Rebind's Settings (and the macOS Screen Recording grant); until then a grab shows a toast instead. The overlay is hidden over exclusive full-screen games on Windows.
- It works in every app, so Ctrl+Alt+G takes over Photoshop's and Krita's Ctrl+Alt+G. Change it in Edit hotkeys if you use that. It needs screen and clipboard permission. On some laptop and Mac keyboards F7 is a media key unless you hold Fn.

Options are saved per file path, so a package install starts with default Options, separate from any older bare copy of this script.

3 files, 18.5 KB.