As a Lubuntu/LXDE user, I hate many of the changes made to the Raspberry Pi desktop over recent years.
But I have to keep reminding myself that this little single board computer is not targeted towards me.
So this is a memo to me on how to add virtual desktops to a Pi, now that they have removed the Openbox Configuration Manager.
When the Pi first arrived in the world, the LXDE desktop layout was pretty familiar to me. The panel was at the bottom of the screen, and the menu groups and individual items where very similar to Lubuntu.
But as the product matured and the Foundation grew, someone was hired to re-work the desktop, and hide or remove things they felt unnecessary (or didn't understand).
The beauty of virtual desktops
One example is the ability to set the number of virtual desktops, a concept totally alien to many Windows users, but generally much loved by Linux people.
By running with a number of desktops (I generally use 4) you are able to click between desktops which are already laid out with an open application. This avoids much of the maximise/minimise operations that are needed if you just have a single desktop.
For me, it speeds up switching between applications. I also often have 2 or more documents open that use the same application. So desktops 1, 2 & 3 may all have open spreadsheets. I may often have multiple instances of file manager open (sometimes a mix of regular user and root instances).
I should hold my hand up and confess that I often have a lot of open applications. And that when I still had a day-job, I always had 2 physical screens connected to my work-station computer. This was something colleagues used to find amusing, until they eventually tried it for themselves, and became converts.
So on the most recent Raspbian image, there are probably 2 or 3 ways to add extra desktops;
The hard way: you could open /home/pi/.conf/openbox/lxde-pi-rc.xml in a text editor and search for: <desktops>
It is then just a case of changing the <number> tag from 1 to whatever.
But you don't really want to do this.
Install the Open Box Configuration manager:
In a terminal:-
sudo apt install obconf
This will give you a new item in the Preferences menu: Openbox Configuration Manager
The preferred option:-
- Right click on the panel and select: Add/Remove Panel Items
- Select: Add
- Add the Desktop Pager
- Move the Pager up the list to suit your needs
- Go to menu > Preferences > Openbox Configuration Manager > Desktops
- Select the required Number of Desktops
Close Menu editor and now select: Menu > Preferences > Desktop Preferences> Advanced Enable "Show menus provided by window manager when desktop is clicked" Right-click on the desktop > Desktops > Add new desktop
|Top panel with 4 desktops to choose from
You can open your application in any desktop. You can also move an open application by clicking on the window header icon and selecting: Send to Desktop
...or you can drag the application window left or right, wait for the desktop to change, and then let go.