You are not logged in.

#1 2018-01-31 12:19:16

mt1234555
Member
From: Europe
Registered: 2018-01-14
Posts: 5
Website

openbox - add more classes to rc.xml

<application class="Pcmanfm">
     <decor>no</decor>
     <maximized>true</maximized>
     <focus>yes</focus>
     <layer>normal</layer>
     <fullscreen>no</fullscreen>
  </application>

I want to add more apps to this setup, how to do that?
I mean something like:
<application class="Pcmanfm" "Pale moon">

Offline

#2 2018-01-31 19:19:17

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: openbox - add more classes to rc.xml

I think you need a new stanza for each application, here is the upstream documentation:

http://openbox.org/wiki/Help:Applications

Offline

#3 2018-01-31 21:40:07

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: openbox - add more classes to rc.xml

iirc, wildcards are supported, e.g.
<application class="P*">
would correspond to your example.

Offline

#4 2018-01-31 22:16:34

mt1234555
Member
From: Europe
Registered: 2018-01-14
Posts: 5
Website

Re: openbox - add more classes to rc.xml

I see. I wanted to quickly add/remove apps to this template.

I've just noticed openbox doesn't detect dialog boxes so it's better to use TITLE instead of CLASS:

<application title="Navigator">
    <decor>no</decor>
    <maximized>true</maximized>
</application>

This way Pale Moon main window is maximised and undecorated but it's children windows ('Save as', Preferences or Bookmarks Library) are not affected.

Offline

#5 2018-01-31 22:22:46

mt1234555
Member
From: Europe
Registered: 2018-01-14
Posts: 5
Website

Re: openbox - add more classes to rc.xml

ohnonot wrote:

iirc, wildcards are supported, e.g.
<application class="P*">
would correspond to your example.

LOL this would maximise all apps beginning with P!

Initially I wanted to use this wildcard:
<application class="*">

and then to 'whitelist' some apps but either way lot of copy/paste work

Offline

#6 2018-02-01 00:32:32

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,660

Re: openbox - add more classes to rc.xml

mt1234555 wrote:

I see. I wanted to quickly add/remove apps to this template.

I've just noticed openbox doesn't detect dialog boxes so it's better to use TITLE instead of CLASS:

<application title="Navigator">
    <decor>no</decor>
    <maximized>true</maximized>
</application>

This way Pale Moon main window is maximised and undecorated but it's children windows ('Save as', Preferences or Bookmarks Library) are not affected.

You can use name, class, role, title, and type in various combinations for finer control - read through the page haos linked.


You must unlearn what you have learned.
    -- yoda

Online

#7 2018-02-01 01:50:15

mt1234555
Member
From: Europe
Registered: 2018-01-14
Posts: 5
Website

Re: openbox - add more classes to rc.xml

Oh, I meant NAME instead of CLASS, not TITLE.
Anyways:
I want all web browsers to be maximised and undecorated so I thought about ROLE:

<application role="browser">
    <decor>no</decor>
    <maximized>true</maximized>
</application>
   
but it turns out that Pale Moons is 'browser' but UZBL, Netsurf, Xombrero and Dillo are not, so it's useless :-/
in addition, uzbl needs two entries; for uzbl-core and uzbl-tabbed.

now you fully understand my problem from post #1.

Last edited by mt1234555 (2018-02-01 01:58:01)

Offline

#8 2018-02-01 18:59:12

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: openbox - add more classes to rc.xml

mt1234555 wrote:
ohnonot wrote:

iirc, wildcards are supported, e.g.
<application class="P*">
would correspond to your example.

LOL this would maximise all apps beginning with P!

good, you understood my example!

mt1234555 wrote:

I've just noticed openbox doesn't detect dialog boxes

are you sure?
it does on my system.
are you familiar with the `obxprop` command?

Offline

#9 2018-02-01 21:56:26

mt1234555
Member
From: Europe
Registered: 2018-01-14
Posts: 5
Website

Re: openbox - add more classes to rc.xml

without obxprop I wouldnt know what to put into rc.xml.
by not detecting I mean it maximises all windows so I have to use NAME= to manually select which windows to maximise (or not). Some dynamic window managers auto-detect dialog windows and prevent them from maximising.

Offline

#10 2023-09-22 17:02:36

plmch
New Member
Registered: 2023-09-22
Posts: 1

Re: openbox - add more classes to rc.xml

Sorry for necroposting, but
>something like:
<application class="Pcmanfm" "Pale moon">
is _exactly_ what i need.

>class="P*"
is not an option, diff. names.

Roles diff. too.

Tried many kinds of separators, but failed.

Any ideas?
Thanks in advance.

Offline

Board footer

Powered by FluxBB