On Mon, 22 Jul 2002, Marc Wilson wrote:

> On Mon, Jul 22, 2002 at 04:32:06PM -0500, Benjamin Bunck wrote:
> > Is it possible to associate a custom menu to a particular style?
> 
> Well, not directly, but you could make the rootCommand in the style a shell
> script that would alter the menu file.  Blackbox is smart enough to
> recognize the change and update on-on-the-fly.
> 
> There have also been several different shell scripts posted to the list
> that do things like make a menu of images to apply to the background, and
> things like that.  Those also operate in real-time, so you could probably
> create something that was smart enough to read the rc file and make a
> decision based on the script, then modify itself.
> 
> If it were me, I'd write something for rootCommand that took two
> arguments... the image I wanted to put on the root window, and the name of
> the menu file.  I'd use bsetbg to set the root window, and then probably
> symlink my chosen menu file to a generic name that'd appear in
> ~/.blackboxrc, so that I didn't have to edit the rc file in real-time.
> 

I like this idea.  I guess it never occured to me that rootCommand could 
run an arbitrary script.

The main reason I want this is just so I can associate specific aterm 
backgrounds, xmms skins, etc...with particular style files.  Purely 
cosmetic.

Thanks,

Ben


> Of course, you could always use sed and do exactly that, if you felt the
> need.
> 
> 

Reply via email to