
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 to get started with Linux
Many of the messages I see in the #Linux feeds on BlueSky and mastodon are Windows users lamenting the end of Support for Windows 10. Many are unable to upgrade to Win11 because their hardware won’t support it. Others are fed up with Windows in general and their efforts to force user to upgrade with suggestions like donating their old computers to purchase a new Win11 one.
How to find Open Source Software to replace your Windows software
Author's note: This article is based on Chapter 6 of my book, "Linux for Small Business Owners," with my coauthor...
Mastering Screenshots with KDE Spectacle:
Writing blog posts that share my experiences with Linux and open-source software often requires screenshots of accomplishing a task or...
Beware Fedora updates of April 28, 2024
It breaks iptables with no warning I'm rather angry right now but I promise to remain calm -- at least...
Learning to use System Settings in Fedora KDE Plasma
I have been using Fedora with the KDE Plasma desktop environment for almost three months, and overall, it’s been a...
The duf command
The duf command is an advanced form of the df command that uses boxes to separate the storage device types into local, fuse (User space file storage), and special devices.