Author Topic: openbox - add more classes to rc.xml  (Read 66 times)

mt12345

  • Posts: 2
    • View Profile
openbox - add more classes to rc.xml
« on: January 31, 2018, 12:15:03 PM »
<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">

PackRat

  • Posts: 2082
    • View Profile
    • PackRat configs on github
Re: openbox - add more classes to rc.xml
« Reply #1 on: January 31, 2018, 01:44:39 PM »
I don't think you can use more that one application per rule unless you can use wildcard matching -

Code: [Select]
<application class="Conky*">

Would apply to window classes starting with "Conky"

You can try a comma or semi-colon separated list, but I've never seen a setup - or documantation - for that.

Best is to just set up each application individually. Openbox help: Applications
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

PackRat

  • Posts: 2082
    • View Profile
    • PackRat configs on github
Re: openbox - add more classes to rc.xml
« Reply #2 on: January 31, 2018, 01:46:22 PM »
From that link -

Code: [Select]
<!-- MPlayer will follow me around when i switch desktop.
       that way i can always watch my vids when coding.
       same goes for Realplayer -->
  <application class="MPlayer">
    <desktop>all</desktop>
    <layer>above</layer>
  </application>
  <application class="Realplay.bin">
    <desktop>all</desktop>
    <layer>above</layer>
  </application>

Couldn't set up mplayer and realplayer together, So it looks like apps need to be set up individually.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo