OpenBOX How to start openbox with 2x2 grid workplaces?

Using FreeBSD 13.0-RELEASE-p7, I would like to start openbox with 2x2 grid workplaces/ desktops. I found this on superuser and have tried the following command but no luck.

xprop -root -f _NET_DESKTOP_LAYOUT 32cccc -set _NET_DESKTOP_LAYOUT 0,2,2,0

And according to this askubuntu link, I've tried adding the following line to ~/.profile but again it didn't work.

sleep 5 && xprop -root -f _NET_DESKTOP_LAYOUT 32cccc -set _NET_DESKTOP_LAYOUT 0,2,2,0

Any help please.
 
I was looking for a way to configure Openbox desktops in grid formation myself, found x11/xprop to configure.

Example: To configure desktops in a 4 columns, 2 rows grid

1. ~/.config/openbox/rc.xml
Code:
 <number>8</number>
  <firstdesk>1</firstdesk>
  <names>
    <!-- set names up here if you want to, like this: -->
    <name>Desktop 1</name>
    <name>Desktop 2</name>
    <name>Desktop 3</name>
    <name>Desktop 4</name>
    <name>Desktop 5</name>
    <name>Desktop 6</name>
    <name>Desktop 7</name>
    <name>Desktop 8</name>
(desktop name can be arbitrary)

2. ~/.config/openbox/autostart
Code:
xprop -root -f _NET_DESKTOP_LAYOUT 32cccc -set _NET_DESKTOP_LAYOUT 0,7,2,0
The column value (here 7) is counted from 0 ( number of desktops -1).

3. exit openbox, restart Xorg
 
Back
Top