Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to set the number of rows for desktop workspaces without using the xfce-panel applet "Workspace Switcher"?

I don’t run xfce-panel at all, preferring to use cairo-dock.

share|improve this question
The answers below, which suggest xprop to manually set the workspaces, do not seem to work in Xubuntu 14.04 (Xfce 4.10). This question might need a new answer that works in recent Xfce releases. – clearkimura Dec 9 '15 at 9:26

It's possible to manually set the _NET_DESKTOP_LAYOUT property using the xprop command.

For example, to get 4 columns x 2 rows, issue this:

xprop -root -f _NET_DESKTOP_LAYOUT 32cccc -set _NET_DESKTOP_LAYOUT 0,4,2,0

And to change the number of workspaces/desktops to 8:


Further information regarding the _NET_DESKTOP_LAYOUT property (among others) can be found here

share|improve this answer

Building off of Pierre's answer, once you've found the right layout, you should add the line to the end of your ~/.profile.

For instance, I prefer to have a 2x2 grid of workspaces, so I added this line to the end of my .profile:

xprop -root -f _NET_DESKTOP_LAYOUT 32cccc -set _NET_DESKTOP_LAYOUT 0,2,2,0

Now the grid should persist between logins.

I'm running Xubuntu 14.04, and I've got to say it's so frustrating that they've removed easy access to this feature from the workspace settings.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.