Skip to content

rajan-31/Workspace-Switch-Buttons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

View on GitHub repo

Full Screen Preview

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)

Get it on GNOME Extensions

Supported GNOME Shell versions: 42, 43, 44


Installation

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, type restart and press enter

  • Run the command gnome-extensions enable workspace-switch-buttons@rajan-31


Feedback/Contribute

Feel free to create an issue if something is not working correctly. Any PRs are welcome.

Devlopment

Resources

https://gjs.guide/extensions/

https://gjs.guide/guides/gobject/basics.html#gobject-construction

https://gjs-docs.gnome.org/

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