Having used Ubuntu as a daily driver for close to 4 years I've become accustomed to using workspaces as part of my core workflow. Workspaces are groupings of windows on your desktop. You can have multiple workspaces and each is a new virtual desktop. The main advantages I've found are:
If you didn't already know this about point #2, ALT+TAB has two siblings: ALT+ESC and ALT+`, both of which are incredibly useful variants of the original and both work alongside workspaces to add layers of organization to your workflow.
Workspaces are essential for arranging workflow GUI elements into organized categories. However, they come with some limitations out of the box.
Workspaces in Ubuntu are auto-generated by default, which means you only have two to start with, and more are added whenever you fill up existing desktops. In my workflow, I like to have GIMP and Libre Office open on workspace 4 and 5 respectively, but to do this with default settings I'd have to fill up all available desktops in workspaces 1 through 3.
The existing Ubuntu Settings panel doesn't have a way to change this default behavior.
Using gnome-tweak-tool it's possible to change this default behavior and set up static workspaces.
apt install gnome-tweak-tool
You can start this tool by searching Activities for "tweak"…
…or running gnome-tweaks
in the terminal.
Next, navigate to "Workspaces" on the menu on the left, and check "Static Workspaces".
You can also select the number of workspaces you'd like to have on this menu.
Now that we have multiple static workspaces enabled, we should be able to assign a hotkey for each of them, right? Wrong. The default configuration options for workspaces in Ubuntu's Settings under Keyboard Shortcuts are limited to just the first four workspaces.
The good news is that this is not a limitation of workspaces themselves, but rather, a limitation of the Keyboard Shorcuts GUI menu.
There is a graphical editor for Ubuntu's advanced configuration options called dconf-editor which can be installed using:
apt-get install dconf-editor
After installing you can either run it from the Activities menu…
…or launch dconf-editor
from the terminal.
Navigate to /org/gnome/desktop/wm/keybindings/
and scroll down a bit to find the options for switch-to-workspace
. The first four will be populated with the original values you set in Keyboard Shortcuts. Change the others by toggling "Use default value" off and entering their new custom value.
The menu should now look like this…
…and the new keyboard shortcuts should be functional.
Ubuntu is an incredible free tool that's available to everyone and has a lot to offer, both in its default state, and with a little bit of extra configuration. Here we've covered gnome-tweak-tool as well as dconf-editor which are useful for workspaces as well as other changes like mapping capslock to escape and changing the default location bar behavior for the nautilus file browser.
If you found this article helpful then please don't hesitate to follow me on twitter or subscribe to my hackmd for more.