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
How I create encrypted passwords
I sometimes need to create an encrypted password for use in scripts when adding one or more new user accounts...
How many releases of Fedora can I upgrade from?
Upgrades are an important part of a SysAdmin's job, whether you know you're one or not. If you think about...
Best Articles of 2024 about Linux system tools
Linux has many excellent tools that allow SysAdmins to manage our systems. We've published many articles this year about those...
Happy birthday Both.org
On December 11, 2023. Both.org morphed from being simply my personal website to being a replacement for Opensource.com (OSDC). On...
How to install FreeDOS the old-school way
Here’s how to install FreeDOS the old-fashioned way, with every step done by hand.
Remove Background from Photos for Holiday Card Creation with Python
You can use open-source tools to produce holiday cards this year. Suppose you have a great photo of your family...