Command line tool to manage your Gnome Shell extensions
Project description
gnome-extensions-cli
Install, update and manage your Gnome Shell extensions from your terminal !
Features
- You can install any extension available on Gnome website
- Use DBus to communicate with Gnome Shell like the Firefox addon does
- Also support non-DBus installations if needed
- Automatically select the compatible version to install for your Gnome Shell
- Update all your extensions with one command:
gext update
Available commands:
gext list
to list you installed extensionsgext search
to search for extensions on Gnome websitegext install
to install extensionsgext update
to update any or all your extensionsgext uninstall
to uninstall extensionsgext show
to show details about extensionsgext enable
to enable extensionsgext disable
to disable extensionsgext preferences
to open the extension configuration window
Note:
gext
is an alias ofgnome-extensions-cli
Install
Releases
Releases are available on PyPI
Note: PipX is the recommended way to install 3rd-party apps in dedicated environments.
# install using pip
$ pip3 install --upgrade gnome-extensions-cli
# or using pipx (you need to install pipx first)
$ pipx install gnome-extensions-cli --system-site-packages
# gext is an alias for gnome-extensions-cli
$ gnome-extensions-cli --help
$ gext --help
From the source
You can also install the latest version from the Git repository:
$ pip3 install --upgrade git+https://github.com/essembeh/gnome-extensions-cli
You can setup a development environment with, requires Poetry
# dependencies to install PyGObject with pip
$ sudo apt install libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0
# clone the repository
$ git clone https://github.com/essembeh/gnome-extensions-cli
$ cd gnome-extensions-cli
# install poetry if you don't have it yet
$ pipx install poetry
# create the venv using poetry
$ poetry install
$ poetry shell
(.venv) $ gnome-extensions-cli --help
Using
By default commands output use terminal colors and styles for a better experience.
If you want to disable the colors and style, when using gext
in shell scripts for example, you can
- use
gext --no-color ...
- or set the environment variable
export NO_COLOR=1
in your shell script before callinggext
List your extensions
By default, the list
command only display the enabled extensions, using -a|--all
argument also displays disabled ones.
Install, update or uninstall extensions
The install
commands allows you to install extensions from their uuid or pk.
Note: You can use
search
command to find extensions,gext
prints uuids in yellow .
# Install extension by its UUID
$ gext install dash-to-panel@jderose9.github.com
# or use its package number from https://extensions.gnome.org
$ gext install 1160
# You can also install multiple extensions at once
$ gext install 1160 todo.txt@bart.libert.gmail.com
# Uninstall extensions
$ gext uninstall todo.txt@bart.libert.gmail.com
# You can enable and disable extensions
$ gext enable todo.txt@bart.libert.gmail.com
$ gext disable todo.txt@bart.libert.gmail.com dash-to-panel@jderose9.github.com
The update
command without arguments updates all enabled extensions.
You can also update
a specific extension by giving its uuid.
Note: the
--install
argument allow you to install extensions given toupdate
command if they are not installed.
Search for extensions and show details
The search
command searches from Gnome website and prints results in your terminal:
The show
command fetches details from Gnome website and prints them:
Under the hood: DBus vs Filesystem
gext
can interact with Gnome Shell using two different implementations, using dbus
or using a filesystem
operations.
Note: By default, it uses
dbus
(as it is the official way), but switches tofilesystem
ifdbus
is not available (like with ssh sessions)
DBus
Using --dbus
, the application uses dbus messages with DBus Python API to communicate with Gnome Shell directly.
Installations are interactive, like when you install extensions from your browser on Gnome website, you are prompted with a Gnome Yes/No dialog before installing the extensions
Pros:
- You are using the exact same way to install extensions as the Firefox addon
- Automatically restart the Gnome Shell when needed
- Very stable
- You can open the extension preference dialog with
gext edit EXTENSION_UUID
Cons:
- You need to have a running Gnome session
Filesystem backend
Using --filesystem
, the application uses unzip packages from Gnome website directly in you ~/.local/share/gnome-shell/extensions/
folder, enable/disable them and restarting the Gnome Shell using subprocesses.
Pros:
- You can install extensions without any Gnome session running (using ssh for example)
- Many
gext
alternatives CLI tools use this method
Cons:
- Some extensions might not install well
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gnome_extensions_cli-0.10.3.tar.gz
.
File metadata
- Download URL: gnome_extensions_cli-0.10.3.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.20 Linux/6.8.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67831b89607d228448b201f96462a70a1df6ec5cc6b4eb16e6fa632756407d3b |
|
MD5 | 9664a899b93cd5a0c616ba3b94421472 |
|
BLAKE2b-256 | 905843b26cf10edc71b1cb8160088aa220f31758b9325222ac197044170a47fb |
File details
Details for the file gnome_extensions_cli-0.10.3-py3-none-any.whl
.
File metadata
- Download URL: gnome_extensions_cli-0.10.3-py3-none-any.whl
- Upload date:
- Size: 25.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.20 Linux/6.8.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f6cfaf8e7302432c9938f591c92457063172d396d880acaf28ef57feaa8d352 |
|
MD5 | 859effa4a4dfdf5fdcb00ffb2c809c3b |
|
BLAKE2b-256 | cda443560e333414a3fce88a2c9c68953d4f06393a7a5bf7128a4830f80327d3 |