Content-type: text/html
fbcolor - create colorflavours of fluxboxstyles
$ cat ifile | fbcolor [-ecthHv] > ofile
fbcolor is a small and handy (hopefully) tool to create different colored flavours of a fluxbox-style.
basic idea is not to use real colors in the stylefile (#rrggbb or grey60 or whatever) but TAGS. then one creates a MAPFILE which references the TAGS to realcolors and use this MAPFILE in combination with the TAGGED stylefile to create the real stylefile.
its not a _rule_ to create the MAPFILE first and the
tagged stylefile later. you can built them simultaneously
or even create the MAPFILE from already built styles
(see 2.step). a mapfile looks like:
@FONTS@ #000000
@MASTER@ #222244
@COLOR1@ #444455
@COLOR2@ blue4
ATTENTION: the @ is essential !!!
2.step: create the TAGGED stylefile
just use @YOURTAG@ ...whatever to mark different colors, eg
menu.title.color: @TITLECOLOR@
window.title.focus.colorTo: @COLORTO@
ATTENTION: the @ is essential !!!
to create a tagged stylefile from an normal stylefile
one has to do the following:
1. cat style | fbcolor -e > style.map
2. cat style.map | fbcolor -t style > style.tagged
thats it. one can then copy and modify this mapfile
as normal
3.step: create the final style
now one uses the generated mapfiles and creates all
the nice flavours of a style one wants to. thats easy:
shell$> cat style.map | fbcolor -c style.tagged > newstyle
mathias gumz <gumz@cs.uni-magdeburg.de>