This GNOME Shell extension offers following features:
- Buttons to switch to left and right workspace
- Shows index of active workspace (click it for overview)
- You can hide it (preferences/settings)
- Hides "Activities" button
- You can turn this off (preferences/settings)
Supported GNOME Shell versions: 42, 43, 44
Use GNOME Extension Manager (or browser extension or any other tool) and search for "Workspace Switch Buttons"
OR follow these steps
-
Download this repo, name the folder "workspace-switch-buttons@rajan-31" and move it to
~/.local/share/gnome-shell/extensions/
-
Restart the GNOME Shell
-
For Wayland
Logout and log back in
-
For X11
Press
alt
+f2
, typerestart
and pressenter
-
-
Run the command
gnome-extensions enable workspace-switch-buttons@rajan-31
Feel free to create an issue if something is not working correctly. Any PRs are welcome.
Resources
https://gjs.guide/guides/gobject/basics.html#gobject-construction
https://gnome-shell-extension-examples.readthedocs.io/en/latest/gsettings1.html
Quick Reference
-
Create new GNOME Shell Extension
gnome-extensions create --interactive
-
For testing, start a nested GNOME Shell session
dbus-run-session -- gnome-shell --nested --wayland
-
Compile settings schema
glib-compile-schemas ./schemas
-
[no use in latest version] Copy settings schema to glib-2.0/schemas & compile
sudo cp org.gnome.shell.extensions.workspace-switch-buttons.gschema.xml /usr/share/glib-2.0/schemas/ sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
-
Zip it
zip ../[email protected] *
-
Symbolic Icons
/usr/share/icons/Yaru/scalable