
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
Resurrecting a Windows laptop
Recently, a friend gave me a recent model of a Hewlett-Packard Pavilion laptop. He said, “It turns on but goes...
Fix SELinux problems with this little-known option
SELinux is a security subsystem that works to prevent files and code from running from places they don't belong. It's...
Linux tools for network administrators
My initial reaction to Linux was that I did not fully understand its range of tools. At that time, I...
Keeping time with chrony
“Does anybody really know what time it is? Does anybody really care?” -- Chicago, 1969 Perhaps that rock group didn’t...
Open source Tools for Everyday Use
Many people don’t realize the abundance of free and open-source resources available online. Here are some of my favorite open-source...
Ventoy: The Ultimate Multi-Boot USB Tool
Giving friends and neighbors a bootable USB drive containing your favorite Linux distribution is a great way to introduce neophyte...