Thanks for your interest in contributing! Lighter is a GNOME Shell extension written in GJS (GNOME JavaScript) using ES modules, targeting GNOME 45+.
Build dependencies: glib2 (for glib-compile-schemas) and gettext (for
make pot and for compiling translations at pack time) — on Debian/Ubuntu:
sudo apt install gettext.
git clone https://github.com/joaoferrete/Lighter.git
cd Lighter
make install # packs and installs the extension for your userAlternatively, for a symlink-based workflow (edits picked up on shell restart):
ln -s "$PWD" ~/.local/share/gnome-shell/extensions/lighter@gnome-shell-extensions.ferrete.com
make build # compiles the GSettings schema locallyWarning: pick ONE of the two workflows. Never run
make installwhile the extension is installed as a symlink into your working copy —gnome-extensions install --forcedeletes the previous installation, and with a symlink that means deleting your repository's contents.make installdetects this and refuses to run, but don't bypass it.
Enable it with:
gnome-extensions enable lighter@gnome-shell-extensions.ferrete.comThe safest way to test is a nested GNOME Shell session (Wayland):
make nestedInside the nested session, enable the extension and open its preferences
(gnome-extensions prefs lighter@...).
On X11 you can instead reload the running shell with Alt+F2, type r, press Enter.
On Wayland (non-nested) you must log out and back in.
Watch the logs while testing:
journalctl -f -o cat /usr/bin/gnome-shellAnd watch settings changes live:
dconf watch /org/gnome/shell/extensions/lighter/We follow the GNOME Shell JavaScript style:
4-space indent, single quotes, semicolons, camelCase.
Run the linter before submitting:
npm install
npm run lintA few project rules:
preferences/andprefs.jsrun in a GTK process: never import anything fromresource:///org/gnome/shell/ui/*there.extension.jsand shell-side modules inlib/run inside the compositor: never importGtk/Adwthere.lib/colorUtils.jsandlib/profileManager.jsare shared by both sides: keep them free of both Shell UI and GTK imports (onlyGLib/Gio).- Everything created in
enable()must be destroyed/disconnected indisable()(signals, timeouts, actors, keybindings). This is a hard requirement for extensions.gnome.org review. - User-visible strings must be wrapped in
_()for translation.
- Regenerate the template:
make pot - Create or update your language file, e.g.:
msginit -i po/lighter.pot -o po/pt_BR.po -l pt_BR.UTF-8(new) ormsgmerge -U po/pt_BR.po po/lighter.pot(update) - Translate the entries and open a pull request. Compiled
.mofiles are generated automatically at pack time — do not commit them.
- Fork and create a topic branch.
- Make your changes, run
npm run lint, and test in a nested session. - Update
CHANGELOG.mdunder the Unreleased heading. - Open a pull request describing what changed and why.
Open an issue with your GNOME Shell version (gnome-shell --version), the extension
version, whether you're on Wayland or X11, and any relevant journalctl output.