Open a filer window with a particular style, size, position
How can I open a filer window with a particular style, size, position, etc?
You can use the OpenDir SOAP method to set the style of the window directly (see the SOAP section of the filer's manual). You can also use use this to set the WM_CLASS, so that your window manager can be set to treat the window
specially.
Matthew Weier O'Phinney writes:
"I now have an XML file entitled appsDir.xml containing the following:
<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope"> <env:Body xmlns:ns="http://rox.sourceforge.net/SOAP/ROX-Filer"> <ns:OpenDir> <ns:Filename>/home/matthew/Apps</ns:Filename> <ns:Style>Large</ns:Style> <ns:Class>AppsDir</ns:Class> </ns:OpenDir> </env:Body> </env:Envelope>
In addition, I have installed bbappconf.
In addition, I have applied a patch (link is now broken; is the bug fixed now?) that makes the program behave when in an iconic or withdrawn (read: dockapp) state, as well as allowing for certain "geometry" type tags.
I run bbappconf as 'bbappconf -i &' in my .xinitrc file.
bbappconf looks for the WM_CLASS name and class. The Class defined in the SOAP RPC xml file above is the WM_CLASS name; class remains "ROX-Filer". Based on the combination of class and name, it applies the settings specified in a configuration file to the window in question when it appears.
In my ~/.bbtools/bbappconf.bb file, I have a series of applications for which I want to control either geometry, stickiness, starting workspace, or toggling decor. I have the following entry now, corresponding to the
above SOAP RPC xml file:
bbappconf.3.classHint.class: ROX-Filer bbappconf.3.classHint.name: AppsDir bbappconf.3.positionX: 698 bbappconf.3.positionY: 0 bbappconf.3.width: 324 bbappconf.3.height: 200 bbappconf.3.Stick: true
This places a window 324x200 in the upper right corner of my desktop and makes it sticky.
bbappconf, while originally developed as a blackbox tool, can be used without blackbox. A file entitled bbappconf.nobb contains settings that should be used if not using blackbox.
Also, the positionX, positionY, width, and height attributes are undocumented. They are a part of the patch to bbappconf detailed above -- this is why I include a sample configuration in here."
- Printer-friendly version
- Login to post comments
Recent comments
2 years 8 weeks ago
2 years 17 weeks ago
3 years 1 week ago
3 years 5 weeks ago
3 years 9 weeks ago
3 years 10 weeks ago
3 years 10 weeks ago
3 years 14 weeks ago
3 years 14 weeks ago
3 years 15 weeks ago