Custom Command Toggle is an extension for GNOME 45+ that lets you create fully customizable quick toggle buttons in the system menu.
- Run commands and launch custom scripts using quick toggle buttons.
- Assign custom button names and icons.
- Run a command at startup to determine the button's initial state based on the command output, or manually specify whether the button starts as on, off, or in its last known state.
- Run associated on or off command at startup to sync button state if required.
- Keep button states synced to a command's output.
- Option to toggle the button only if the command executes successfully and returns exit code 0 (for use with sudo commands using
pkexec sudowhere the command could be canceled or incorrect password entered). - Customize toggle button behavior to toggle or be in an always on or off state.
- Assign keyboard shortcuts to quick toggle buttons.
- Import and export button configurations using an easy-to-edit .ini file.
- Create up to 6 custom buttons.
For detailed configuration instructions and setup tips, refer to the
📘 User Guide
Browse for and install this extension through the GNOME Extension Manager, or install through the GNOME Extensions website.
- Download the
custom-command-toggle.zipfile of the latest release. - In the terminal run:
gnome-extensions install --force custom-command-toggle.zip - Logout and login.
To enable and configure the extension:
gnome-extensions enable custom-command-toggle@storageb.github.com
gnome-extensions prefs custom-command-toggle@storageb.github.com

