Skip to content

Azote 1.7.5

Compare
Choose a tag to compare
@nwg-piotr nwg-piotr released this 22 Nov 00:17
· 320 commits to master since this release

Changes:

  • Color picker on Sway: it'll will first try to pick a clicked point instead of an area with:

grim -g "$(slurp -p)" -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:-

Optional packages grim, slurp and imagemagick required; The colorthief-based calculation of the dominant color
of an area left as the fallback method.

  • Color picker on X11: it'll will first try to pick an area and return a color with the maim command:

$ maim -st 0 | convert - -resize 1x1\! -format '%[pixel:p{0,0}]' info:-

Optional maim and imagemagick packages required. In case it fails, the colorthief-based calculation of the dominant
color of an area will be used as the fallback method.

Why so? The colorthief library is cool, but calculation of the dominant colour is not accurate enough to this
purpose. If you select a region filled with #333333, the calculated value will be #343434.

  • Colour palette steps altered to 6, 12, 18, 24.

  • Several improvements to the environment detection and logging.

New:

  • Toolboxes for .Xresources and alacritty.yml; allow to find colour definitions and redefine with colours
    selected from a palette or probed with the color picker. The alacritty toolbox depends on the optional python-yaml
    package.

Usage: click a colour on the palette or pick with the Screen color picker -> click a colour inside the toolbox to apply.
Copy - paste definitions into the .dot file. Mind the indentation in alacritty.yml.

  • Colour names dictionary: displays the colour name as the tooltip text.