LemonBoy / bar

A featherweight, lemon-scented, bar based on xcb
MIT License
1.62k stars 194 forks source link

Add slant flag #176

Closed neeasade closed 3 years ago

neeasade commented 8 years ago

Initially was just going to package on my fork as this is a vanity feature, but figured would submit for consideration/revise if needed for that. This adds a few flags for making slants, demonstrated in slant_demo.sh -- for example %{E2} would result in an upper left slant across the length of 2 characters. Slant colors reference current FG and BG.

Results vary a bit, you can tweak the values Len and geom in the example script, which as is looks like:

pic

LemonBoy commented 8 years ago

I propose an alternative approach, extract the code to a draw_slant and draw the whole slant in one go (using the poly functions xcb has), we don't really care about drawing glyphs over slants (nice name for a band though).

neeasade commented 8 years ago

I had not considered that (I'm not xcb savvy) but will look into and revise.