Extension for the Gnome Shell to quickly toggle between the two last workspaces with a single key (Super+Escape).
It installs a keybinding which defaults to <Super>escape
. Repeatedly
pressing the shortcut key causes the active workspace to toggle
between the last two selected workspaces.
Tested with Gnome version 40 through 3.28.
From extension version 6 it is possible to change the shortcut key using an extension preferences window.
Alternatively, to change the default shortcut run something like this:
gsettings --schemadir $HOME/.local/share/gnome-shell/extensions/[email protected]/schemas \
set org.gnome.shell.extensions.go-to-last-workspace shortcut-key "['<Super>w','<Alt>F1']"
If you by some reason need run this awesome extension on ancient Gnome 3.20, e.g. on Ubuntu 16.04, please use the following instructions:
- Go to your user local extension directory:
$ cd ~/.local/share/gnome-shell/extensions
- Remove the extension if it exists:
$ rm -rf ./[email protected]/
- Clone source code:
$ git clone https://github.com/arjan/gnome-shell-go-to-last-workspace.git
- Rename the cloned repo to correspond the extension UUID:
$ mv gnome-shell-go-to-last-workspace [email protected]
- Pick an old working revision:
$ git checkout 6c82ffa82b869e6a97928709788f9a68b38369fa
- Set the default hotkey:
$ gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas set org.gnome.shell.extensions.go-to-last-workspace shortcut-key "['<Super>escape']"
- Restart Gnome Shell:
Press Alt+F2
, then type r
and press enter key.