Gnome : Switch to Workspace 3 and 4 using Keyboard Shortcut
by Mandar Vaze on February 13, 2009
in Linux, Productivity, Ubuntu

- Image via Wikipedia
During my last post I discussed about assigning keyboard shortcuts to switch workspaces. At that time, I was unable to assign keyboard shortcuts to switch to Workspace 3 and 4. After little more trial and error, I was able to assign shortcuts for these.
Number of workspaces listed in Keyboard shortcuts preferences are driven by meta-city configuration. So even though I added two more workspaces from Workspace Panel applet, the metacity configuration still had number of workspaces defined as 2. That is why additional shortcuts were not even available to configure.
How to update Number of workspaces in Metacity preferences ?
- Press Alt+F2 to bring up Run dialog box (Similar to Windows+R on Windows)
- Type gconf-editor, and hit enter.
- This will bring up Configuration Editor window. If you have ever used Registry Editor on Windows, this will be very familiar, except there are lot less hex/cryptic values
- Using the left hand side tree structure, navigate to /apps/metacity/general
- Now in the right hand side panel, you’ll see several configurable items.
- Click on num_workspaces. Default value would be 2. Click on 2 , edit it to 4
- Exit out of Configuration Editor.
- Go back to System->Preferences->Keyboard Shortcuts. Now under Windows Management Category, you should see entries for Switch to Workspace 3 (and 4)
Note : How-To geek article listed below was very helpful. See link below.
Correction : Nov 25, 2009
It is incorrect to say that this works in gnome. It would be accurate to say that this works in gnome when using metacity window manager. It is amply clear from the instructions above that these shortcut keys are honored by metacity window manager only. It was clear to me when I tried gnome-shell window manager in Ubuntu 9.10, where these keyboard shortcuts did not work.
If gnome-shell indeed supports something similar for workspace switching I’ll write another post detailing the instructions. But for now, consider yourself warned.
Update 2 : It turns out there is no need for separate hotkeys needed to switch to other work spaces. Alt+Tab shows the list of all the applications across all the work spaces. Applications in different work spaces are separated by vertical line
Related articles by Zemanta
- Assign Custom Shortcut Keys on Ubuntu Linux (howtogeek.com)
- Gnome : How to Assign Keyboard Shortcuts (desipenguin.com)
- How to Configure Gnome Keyboard Shortcuts (taragana.com)
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_c.png?x-id=22d0a02d-b657-45f4-ac72-a9aa828f1a0b)


thx! this was exactly what i needed.
Thank you for this valuable piece of information. You did a good job in making this so easy to do, your explanation is clear and easy to follow.
Thank you again.
Perfect! Thank you very much.