Keyboard Shortcut to go back to the previous active workspace
Feature summary
I would like to have a shortcut in the keyboard shortcut settings to set a shortcut for going back to the previous workspace.
How would you like it to work
A friend and me already coded a working GNOME Extension which is able to do what i want. However, i feel more like this should a basic GNOME Shell function, an extra extension feels quite unnecessary to do this, but great as an proof that this actually works.
We were able to get the number of the previous workspace by running global.workspace_manager.connect('workspace-switched', (objectidc, last_ws, current_ws)
.
Relevant links, screenshots, screencasts etc.
https://github.com/peterge1998/workspaceautobackforth/blob/main/extension.js