Customize GNOME Shell Extensions: Step-by-Step Guide
In this article
GNOME Shell extensions are small pieces of code that change how the desktop looks and behaves, from adding a clipboard manager to altering the top bar. Customizing them means tweaking their settings, appearance, or behavior to fit your workflow. This guide walks you through the process, from installing the necessary tools to editing extension preferences and even modifying source code for deeper changes.
What You'll Need
- A system running GNOME Shell (version 3.34 or later recommended).
- GNOME Tweaks (also called GNOME Tweaks Tool) – install via your package manager (e.g.,
sudo apt install gnome-tweakson Debian/Ubuntu,sudo dnf install gnome-tweakson Fedora). - An extension manager like Extension Manager (Flatpak) or the built-in Extensions app (GNOME 40+).
- Optional: a text editor (gedit, VS Code, nano) for editing source files.
Step-by-Step
- Install the GNOME Shell integration. For Firefox or Chromium, install the browser extension “GNOME Shell integration” from the official GNOME site. This lets you install extensions directly from extensions.gnome.org. Alternatively, use the distro’s package manager to install extensions individually.
- Open the Extensions app. In GNOME 40+, press the Super key and type “Extensions”. Launch the app. If you don’t have it, install
gnome-shell-extension-manager(for the Flatpak version) or use GNOME Tweaks’ “Extensions” pane. - Browse and install an extension. In the Extensions app, click “Browse” (or the puzzle piece icon) to see available extensions. Search for one you like (e.g., “Dash to Dock”). Click “Install”. If you’re using the browser integration, visit extensions.gnome.org, toggle the switch to “On” for the extension.
- Enable the extension. Back in the Extensions app, find the installed extension in the “Installed” list. Toggle the switch to enable it. It should activate immediately. If not, restart GNOME Shell (see Troubleshooting).
- Open extension settings. Most extensions have a gear icon next to their name in the Extensions app. Click it to open a settings window. Here you can adjust options like position, size, behavior, or hotkeys.
- Adjust common settings. For example, in “Dash to Dock”, you can change the dock’s position (bottom, left, right), icon size, and auto-hide behavior. In “Clipboard Indicator”, you can set the number of entries to keep and toggle a history search.
- Edit extension preferences via dconf (if no GUI). Some extensions store settings in dconf. Open a terminal and run
dconf list /org/gnome/shell/extensions/<extension-name>/to see keys. Usedconf writeto change values. For example:dconf write /org/gnome/shell/extensions/dash-to-dock/dock-position "'LEFT'". - Customize the extension’s CSS (appearance). Extensions often have a
stylesheet.cssfile. To change colors, fonts, or spacing, locate the extension’s directory: usually~/.local/share/gnome-shell/extensions/<uuid>/. Edit the CSS file with a text editor, then restart GNOME Shell (Alt+F2, typer, Enter). - Modify the extension’s JavaScript (behavior). For deeper changes, edit the
extension.jsfile. For example, you might change a default value or add a new feature. After editing, restart GNOME Shell to apply changes. Be careful: syntax errors can break the shell. - Back up your customizations. Copy the entire extension folder to a safe location. If you update the extension, your changes may be overwritten. Keeping a backup allows you to re-apply them.
Common Mistakes
- Enabling an extension that isn’t compatible with your GNOME version. The Extensions app shows a warning if the extension’s metadata doesn’t match. Ignoring it can cause crashes.
- Editing files without restarting GNOME Shell. Changes won’t take effect until you restart. Use Alt+F2, type
r, press Enter (in Xorg). In Wayland, log out and back in. - Using the wrong extension directory. System-wide extensions are in
/usr/share/gnome-shell/extensions/, but user-installed ones are in~/.local/share/gnome-shell/extensions/. Editing the wrong one does nothing. - Not checking the extension’s log for errors. If an extension fails, check
journalctl -f -o cat /usr/bin/gnome-shellfor errors. - Overwriting the extension’s own settings file. Some extensions have a
schemasfolder with GSettings schemas. Editing those incorrectly can make the extension fail to load.
Tips
- Use the Extensions app’s “Screenshot” button (if available) to see what an extension looks like before installing.
- If you want to revert to default settings, use the “Reset” button in the extension’s settings window.
- For CSS tweaks, use GNOME’s built-in inspector: press
Ctrl+Shift+Iwhile an extension’s UI is visible. It lets you inspect elements and test CSS changes live. - When editing JavaScript, use a linter or at least check the syntax with
node --check extension.jsbefore restarting. - Keep extensions updated via the Extensions app or your package manager. Updates often fix bugs and add compatibility with newer GNOME versions.
- If you’re not comfortable editing code, many extensions have extensive settings in their GUI – explore all tabs first.
Troubleshooting
Extension doesn’t appear or doesn’t work after enabling. First, check if the extension is compatible with your GNOME version. In the Extensions app, it shows a warning icon if not. Try disabling and re-enabling it. If that fails, restart GNOME Shell: press Alt+F2, type r, and press Enter (Xorg only). On Wayland, log out and back in.
GNOME Shell crashes or becomes unresponsive after enabling an extension. This usually means the extension has a bug. Disable it from the Extensions app if possible. If you can’t, boot into a terminal (Ctrl+Alt+F3), log in, and run gsettings set org.gnome.shell enabled-extensions "[]" to disable all extensions. Then restart the session.
Changes to CSS or JS don’t take effect. Make sure you edited the correct file in the correct directory (user vs system). Also, check that you saved the file and restarted GNOME Shell. If you’re editing a system-wide extension, you may need root permissions – but it’s better to copy it to your user directory and edit there.
Extension settings are grayed out. This often happens when the extension is not running or is incompatible. Check the extension’s logs: run journalctl -f -o cat /usr/bin/gnome-shell in a terminal, then enable the extension to see error messages.
After an update, my customizations are gone. Updates overwrite extension files. Restore your backup (step 10) or re-apply your changes manually. To avoid this, you can pin the extension version in your package manager, but that’s not always possible.
Frequently Asked Questions
Can I customize extensions without using the terminal?
Yes, most extensions have a graphical settings window accessible from the Extensions app. For CSS or JS changes, you’ll need a text editor, but that can be a GUI editor like gedit or VS Code.
Where are GNOME Shell extensions stored?
User-installed extensions are in ~/.local/share/gnome-shell/extensions/. System-wide extensions (installed via package manager) are in /usr/share/gnome-shell/extensions/.
How do I reset an extension to its default settings?
Open the extension’s settings window and look for a “Reset” or “Restore defaults” button. If there isn’t one, you can delete the extension’s GSettings keys: dconf reset -f /org/gnome/shell/extensions/<extension-name>/.
Is it safe to edit an extension’s source code?
It’s safe if you make a backup first and test carefully. A syntax error can break GNOME Shell, but you can always disable the extension via the terminal as described in Troubleshooting.
Can I change the icon or name of an extension?
Yes, you can edit the metadata.json file in the extension’s folder. Change the “name” and “description” fields. For the icon, replace the icon.png or icon.svg file. Then restart GNOME Shell.
Why do some extensions have a warning triangle?
That means the extension is not officially compatible with your GNOME Shell version. It might still work, but it could cause issues. You can override the compatibility check by editing metadata.json and changing the “shell-version” list to include your version, but do this at your own risk.