DSL Tips and Tricks :: Joe's Window Manager



Themes

I've been messing around with simple ways to "skin" JWM without needing to manually edit .jwmrc every time i want a visual change.  Fortunately the configuration allows you to include additional config files, and fortunately you can override the settings in .jwmrc by adding new settings in the external files.  This requires adding a new tag to .jwmrc, just before the </JWM> tag:
Code Sample
<Include>/path/to/file</Include>


So here are a few that were based on fluxbox styles in DSL....

Simple:
Code Sample
<?xml version="1.0"?>
<JWM>
<!-- JWM theme loosely based on the "Simple" Fluxbox style -->
<StartupCommand>xsri --color=black --center-x --center-y --emblem /usr/share/fluxbox/backgrounds/tux_c_logo.jpg</StartupCommand>
       <Border>
               <Font antialias="false">-adobe-helvetica-medium-r-normal--12-*</Font>
               <Foreground>grey</Foreground>
               <Background>#666666</Background>
               <ActiveForeground>white</ActiveForeground>
               <ActiveBackground>#333333</ActiveBackground>
       </Border>
       <Tray>
               <Font antialias="false">-adobe-helvetica-medium-r-normal--12-*</Font>
               <Foreground>white</Foreground>
               <Background>#666666</Background>
               <ActiveForeground>white</ActiveForeground>
               <ActiveBackground>#333333</ActiveBackground>
       </Tray>
       <Pager>
               <Outline>#666666</Outline>
               <Foreground>#333333</Foreground>
               <Background>#333333</Background>
               <ActiveForeground>white</ActiveForeground>
               <ActiveBackground>grey</ActiveBackground>
       </Pager>
       <Load>
               <Outline>white</Outline>
               <Foreground>white</Foreground>
               <Background>#333333</Background>
       </Load>
       <Popup>
               <Font antialias="false">-adobe-helvetica-medium-r-normal--12-*</Font>
               <Outline>#666666</Outline>
               <Foreground>black</Foreground>
               <Background>grey</Background>
       </Popup>
       <Menu>
               <Font antialias="false">-adobe-helvetica-medium-r-normal--12-*</Font>
               <Foreground>white</Foreground>
               <Background>#666666</Background>
               <ActiveForeground>white</ActiveForeground>
               <ActiveBackground>black</ActiveBackground>
       </Menu>
</JWM>

Fissure2:
Code Sample
<?xml version="1.0"?>
<JWM>
<!-- JWM theme loosely based on the "Fizzure2" Fluxbox style -->
<StartupCommand>xsri --scale-width=100 --scale-height=100 /usr/share/fluxbox/backgrounds/fractalMovementscape.jpg</StartupCommand>
       <Border>
               <Font antialias="false">-*-helvetica-*-r-*-*-12-*-*-*-*-*-*-*</Font>
               <Foreground>black</Foreground>
               <Background>#a6a6a6</Background>
               <ActiveForeground>#fefefe</ActiveForeground>
               <ActiveBackground>#2152c5</ActiveBackground>
       </Border>
       <Tray>
               <Font antialias="false">-*-helvetica-*-r-*-*-12-*-*-*-*-*-*-*</Font>
               <Foreground>black</Foreground>
               <Background>#a6a6a6</Background>
               <ActiveForeground>#fefefe</ActiveForeground>
               <ActiveBackground>#2152c5</ActiveBackground>
       </Tray>
       <Pager>
               <Outline>#888888</Outline>
               <Foreground>black</Foreground>
               <Background>#2152c5</Background>
               <ActiveForeground>#fefefe</ActiveForeground>
               <ActiveBackground>#4184de</ActiveBackground>
       </Pager>
       <Load>
               <Outline>white</Outline>
               <Foreground>DarkOrange2</Foreground>
               <Background>#2152c5</Background>
       </Load>
       <Popup>
               <Font antialias="false">-*-helvetica-*-r-*-*-12-*-*-*-*-*-*-*</Font>
               <Outline>#a6a6a6</Outline>
               <Foreground>#fefefe</Foreground>
               <Background>#2152c5</Background>
       </Popup>
       <Menu>
               <Font antialias="false">-*-helvetica-*-r-*-*-12-*-*-*-*-*-*-*</Font>
               <Foreground>black</Foreground>
               <Background>#a6a6a6</Background>
               <ActiveForeground>#fefefe</ActiveForeground>
               <ActiveBackground>#2152c5</ActiveBackground>
       </Menu>
</JWM>

BizCard:
Code Sample
<?xml version="1.0"?>
<JWM>
<!-- JWM theme loosely based on the "BizCard" Fluxbox style -->
<StartupCommand>xsri --color=#3a1f61 --color2=#000000 --vgradient --center-x --center-y --emblem /usr/share/fluxbox/backgrounds/BizCard_c.png</StartupCommand>
       <Border>
               <Font antialias="false">-adobe-helvetica-medium-r-normal--12-*</Font>
               <Foreground>grey</Foreground>
               <Background>black</Background>
               <ActiveForeground>white</ActiveForeground>
               <ActiveBackground>#444444</ActiveBackground>
       </Border>
       <Tray>
               <Font antialias="false">-adobe-helvetica-medium-r-normal--12-*</Font>
               <Foreground>grey</Foreground>
               <Background>#111111</Background>
               <ActiveForeground>white</ActiveForeground>
               <ActiveBackground>#444444</ActiveBackground>
       </Tray>
       <Pager>
               <Outline>#888888</Outline>
               <Foreground>#121212</Foreground>
               <Background>#3a1f61</Background>
               <ActiveForeground>grey</ActiveForeground>
               <ActiveBackground>#121212</ActiveBackground>
       </Pager>
       <Load>
               <Outline>white</Outline>
               <Foreground>white</Foreground>
               <Background>#3a1f61</Background>
       </Load>
       <Popup>
               <Font antialias="false">-adobe-helvetica-medium-r-normal--12-*</Font>
               <Outline>grey</Outline>
               <Foreground>white</Foreground>
               <Background>#3a1f61</Background>
       </Popup>
       <Menu>
               <Font antialias="false">-adobe-helvetica-medium-r-normal--12-*</Font>
               <Foreground>white</Foreground>
               <Background>black</Background>
               <ActiveForeground>white</ActiveForeground>
               <ActiveBackground>#888888</ActiveBackground>
       </Menu>
</JWM>


EDIT: I just noticed that I left the "antialias" attribute in the font tags, which is probably not necessary.

Nice job, mikshaw! I am using your Fissure2 theme.
if you all want i have several already created themes on my project site.  
there is also some minor projects created for JWM there also


My Webpage

Methinks it may be possible to hack a simple lua or Tcl/Tk script to manage themes under JWM, if no such thing exists yet?
Yes it would...or even a bash or flua script.  I'm doing this very thing.
Currently i have the "Include" tag pointing to a symlink called "default" rather than a specific theme file, much like DSL does with fluxbox themes, so i don't have to change that tag....just have to create a new symlink to the appropriate theme.

Next Page...
original here.