i3lock-color
i3lock-color copied to clipboard
Add options to draw indicator as polygon
Description
I needed a hexagon unlock indicator for my config, thought it turned out pretty neat and was worth sharing. This adds three new config options.
--polygon-sides=nenables drawing a regular polygon instead of a circle for the indicator. It defaults to0, which draws a circle, and can be any integer greater then2.--polygon-offset=dspecifies a rotation in degrees to apply to the polygon. At zero offset the first vertex is at(ind_x+radius,ind_y).--polygon-highlight={0,1,2}defines the highlight mode while typing.0highlights a random edge on each keystroke.1highlights sequential edges walking clockwise around the indicator.2walks counter clockwise. The edge to highlight is based on the buffer position, so backspacing characters reverses the direction of rotation.
The value of --radius is the center to vertex distance of the polygon. --line-*, --inside-*, and --ring-* are all respected. Separators are not drawn.
Screenshots/screencaps

Release notes
Notes: Added config options to draw indicator as a polygon.
This is SO COOL. I'll review and merge soon!