Skip to content

PublisherName/shutdown-dialogue-gs-extension

Repository files navigation

Shutdown Dialogue Extension

This GNOME Shell extension provides a custom keybinding for Alt+F4 to show a shutdown dialogue when no windows are open.

Screenshots

Shutdown Dialogue

Features

  • 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.

Installation

Automatic Installation

  1. Install the extension from the GNOME Extensions website:

    Shutdown Dialogue Extension

    Install on GNOME Shell

Manual Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/PublisherName/shutdown-dialogue-gs-extension.git
  2. Navigate to the extension directory:

    cd shutdown-dialogue-gs-extension
  3. Copy the extension to the GNOME Shell extensions directory:

    ./build.sh
  4. Restart GNOME Shell:

    Press Alt+F2, type 'r', and press Enter
  5. Enable the extension using GNOME Tweaks or Extensions app.

Usage

  • 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.

Testing

  1. Install dependency
uv sync
  1. Build a zip
./build.sh
  1. Check the zip
uv run shutdown-dialogue@subashghimire.info.np.zip

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Icon Credits

Icons from icon-icons.com:

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This GNOME Shell extension provides a custom keybinding for Alt+F4 to show a shutdown dialogue when no windows are open.

Topics

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors