I have specified desktops for certain applications in ~/.config/openbox/lxde-rc.xml
Debian Bullseye
Some work and some do not, this does not.
OOOPs must have changed something in my last edit, all better now. I'll post editing details in a reply so anyone interested can do this.
[code780 <!-- EDIT CHROMIUM POSITION WINDOW ADD TO "4" DESKTOP -->
781
782 #_OB_APP_TYPE(UTF8_STRING) = "normal"
783 #_OB_APP_TITLE(UTF8_STRING) = "Chromium"
784 #_OB_APP_GROUP_CLASS(UTF8_STRING) = "Chromium"
785 #_OB_APP_GROUP_NAME(UTF8_STRING) = "chromium"
786 #_OB_APP_CLASS(UTF8_STRING) = "Chromium"
787 #_OB_APP_NAME(UTF8_STRING) = "chromium"
788 #_OB_APP_ROLE(UTF8_STRING) = "browser"
789
790 <application name="Chromium" class="Chromium"><maximized>true</maximized><desktop>4</desktop></application>
791
792 ][/code]
Specify desktop in 'lxde-rc.xml'
-
- Posts: 12
- Joined: Tue May 26, 2015 11:20 am
Specify desktop in 'lxde-rc.xml'
Lenovo T520
O/S History Win 3.11,OS2,95,98,2000,SUSE,Vista,Win7,U/Xu/Lu_buntu,Debian8 LXDE
O/S History Win 3.11,OS2,95,98,2000,SUSE,Vista,Win7,U/Xu/Lu_buntu,Debian8 LXDE
-
- Posts: 12
- Joined: Tue May 26, 2015 11:20 am
Re: Specify desktop in 'lxde-rc.xml'
How to:-
Modifiying your openbox configuration to add an app specific rule
To add an application rule open your openbox rc.xml
found under #(~/.config/openbox/rc.xml for stock openbox)
or for LXDE ~/.config/openbox/lxde-rc.xml
and navigate to the <applications> section at the very end of the file.
Insert your application specific rules between the <applications>..</applications> tags.
then save the file and proceed to reload the configuration by executing:
the application specific rules should be in effect after this and will
automatically get applied to newly spawned windows.
Also:-
to show application attributes for open box configuration
run in terminal while application is running
immediately click on "Restored Window of Application"
to see the value of these five properties.
The final edit can be seen in my original "Question" the two options for desktops are
Modifiying your openbox configuration to add an app specific rule
To add an application rule open your openbox rc.xml
found under #(~/.config/openbox/rc.xml for stock openbox)
or for LXDE ~/.config/openbox/lxde-rc.xml
and navigate to the <applications> section at the very end of the file.
Insert your application specific rules between the <applications>..</applications> tags.
then save the file and proceed to reload the configuration by executing:
Code: Select all
openbox --reconfigure
automatically get applied to newly spawned windows.
Also:-
to show application attributes for open box configuration
run in terminal while application is running
Code: Select all
obxprop | grep "^_OB_APP"
to see the value of these five properties.
Code: Select all
#_OB_APP_TYPE(UTF8_STRING) = "normal"
#_OB_APP_TITLE(UTF8_STRING) = "untitled - Chromium"
#_OB_APP_GROUP_CLASS(UTF8_STRING) =
#_OB_APP_GROUP_NAME(UTF8_STRING) =
#_OB_APP_CLASS(UTF8_STRING) = "Chromium"
#_OB_APP_NAME(UTF8_STRING) = "chromium"
#_OB_APP_ROLE(UTF8_STRING) = "browser"
Code: Select all
>all< >2<
Lenovo T520
O/S History Win 3.11,OS2,95,98,2000,SUSE,Vista,Win7,U/Xu/Lu_buntu,Debian8 LXDE
O/S History Win 3.11,OS2,95,98,2000,SUSE,Vista,Win7,U/Xu/Lu_buntu,Debian8 LXDE