[openbox] Per-Application settings on terminal applications

Xyne xyne at archlinux.ca
Sun May 23 20:43:14 EDT 2010


> Hi,
> 
> I was trying to set up some per-application settings for applications 
> like mutt, vifm or ncmpcpp that run into a terminal.
> The problem is that obxprop identifies all these programs like urxvt 
> since they run inside urxvt.
> 
> Is there a way for openbox to distinguish between different urxvt 
> windows that run different programs?
> 
> Thank you.
> 
> Cheers,
> rent0n

Hi,

If you know in advance which application you'll be running in the
terminal then you can use urxvt's "-name" option. This would be the
case when launching terminal applications from the menu, for example.

You might find it useful to review the code in the following forum post:
http://bbs.archlinux.org/viewtopic.php?pid=550380

There you'll see that urxvtc is launched with "-name urxvtq" to change
its name, which then allows configuration in rc.xml with "<application
name="urxvtq"> ...".

Btw, that post describes how to configure a Quake-like urxvt terminal
in Openbox, which others reading this list might find useful.

Regards,
Xyne


More information about the openbox mailing list