
Setting the number of desktop workspaces for Xfce4
Last Updated on December 14, 2020 by David Both
I just learned something very cool.
Sometimes it is necessary to make remote modifications to a desktop using the command line. In this case I needed to reduce the number of workspaces on the Xfce panel from 4 to 3 at the request of the user. This is actually easy and only required about 20 minutes of searching on the Internet.
The xfconf-query command can be used by non-root users to query and set various attributes for the xfwm4 window manager. In the sample below I have first verified the current setting of 4 workspaces, then set the number to 2, and finally verified the new setting.
[user@test1 ~]# xfconf-query -c xfwm4 -p /general/workspace_count 4 [user@test1 ~]# xfconf-query -c xfwm4 -p /general/workspace_count -s 2 [user@test1 ~]# xfconf-query -c xfwm4 -p /general/workspace_count 2 [user@test1 ~]#
Also, the default workspace count and many other defaults for xfwm4 can be found and changed in the /usr/share/xfwm4/defaults file. So setting “workspace_count=4” to “workspace_count=2” changes the default for all users on the host.
Look for more details about remote Xfce desktop configuration and the xconf-query command here.
More Stories
The Linux Philosophy for SysAdmins, Tenet 22—Mentor the young SysAdmins
When I first started, I was a young and innocent SysAdmin. I was fortunate because I worked at a couple different jobs where other, seasoned SysAdmins were willing to mentor me and encourage me. None of them laughed at me when I asked what must have seemed to them to have answers that were blindingly obvious. None of these patient SysAdmins ever told me to RTFM.
Do I have enough space for that?
A little scripting goes a long way to make sure you won’t run out of space with an automated process.
Strange problems with switches
Network switches are supposed to be simple devices that work at TCP/IP layer 1, the hardware layer. As far as...
Nextcloud is a snap
Recently I have been tasked with assisting a local medical office with finding a new way to store medical images...
Breaking Free from Windows 10: KDE Plasma Is Your Upgrade to Freedom
October 14, 2025, is a big day if you’re a Microsoft Windows user. That’s the day that support for Windows...