This GNOME Shell extension provides a custom keybinding for Alt+F4 to show a shutdown dialogue when no windows are open.
- Overrides the default Alt+F4 keybinding.
- Shows a notification when Alt+F4 is pressed and no windows are open.
- Restores the original keybinding when the extension is disabled.
-
Install the extension from the GNOME Extensions website:
-
Clone the repository to your local machine:
git clone https://github.com/PublisherName/shutdown-dialogue-gs-extension.git
-
Navigate to the extension directory:
cd shutdown-dialogue-gs-extension -
Copy the extension to the GNOME Shell extensions directory:
./build.sh
-
Restart GNOME Shell:
Press Alt+F2, type 'r', and press Enter
-
Enable the extension using GNOME Tweaks or Extensions app.
- Press Alt+F4 to trigger the shutdown dialogue when no windows are open.
- The extension will show a dialogue when no windows are open and asking if you want to shut down.
- Install dependency
uv sync- Build a zip
./build.sh- Check the zip
uv run shutdown-dialogue@subashghimire.info.np.zipContributions are welcome! Please open an issue or submit a pull request.
Icons from icon-icons.com:
This project is licensed under the MIT License. See the LICENSE file for details.

