☢️ Force quit all applications with one terminal command.
Simply run brew install gleich/homebrew-taps/nuke
Download the binary from the releases page and copy it to your desired location.
- Please install the
wmctrl
CLI tool using your system's package manager
Just run nuke
and answer the one question to confirm. A window will pop up when you run it from your terminal for the first time asking if your terminal is allowed to close finder windows. Click ok
to continue. You should only be asked this once.
You can configure a list of apps you want nuke to ignore in ~/.config/nuke/config.yml
. You will need to create this file. Below is an example config:
ignoredApps:
- Google Chrome
- Terminal
Ignores Google Chrome and Terminal
If you want to ignore apps on the fly then you can pass them in as arguments. Keep in mind that spaces and other characters might need to be escaped. Below are two examples
$ nuke "Google Chrome" "Visual Studio Code"
Ignores Google Chrome and Visual Studio Code
$ nuke Music Slack Notion
Ignores Music, Slack, and Notion
By default, Nuke will only close and list applications running from the Dock. If you want to also include the ones running only in the menubar, you can add the following to your config:
includeMenubarApps: true
This is a macOS only option.
By default nuke checks if there is an update every time you run it. If you want to turn it off add the following to your config:
ignoredUpdates: true
By default nuke ask you to select the application from which you are running it. Once selected, it will be ignored. If you want to turn it off, let's say for automation, add the following to your config:
ignoredRunningFrom: true
If you set ignoredRunningFrom
to true
, be sure to add the application you are using to run nuke from into ignoreApps. You can also pass it as an argument. If you don't, nuke will raise an error trying to close the application you are running it from.
All contributions are welcome! Just make sure that its not an already existing issue or pull request.