fharper / nuke

☢️ Force quit all applications with one terminal command in macOS and Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Title Example

nuke GitHub release (latest by date)

build lint release

☢️ Force quit all applications with one terminal command.

🚀 Install

🍎 MacOS

Simply run brew install gleich/homebrew-taps/nuke

🐧 Linux

Download the binary from the releases page and copy it to your desired location.

Requirements

  • Please install the wmctrl CLI tool using your system's package manager

🏃 Running

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.

⚙️ Configuration

🙈 Ignoring apps

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

➕ Include menubar apps

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.

🚀 Update Checks

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

🚫 Ignoring running nuke from app

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.

🙋‍♀️🙋‍♂️ Contributing

All contributions are welcome! Just make sure that its not an already existing issue or pull request.

👥 Contributors

About

☢️ Force quit all applications with one terminal command in macOS and Linux

License:MIT License


Languages

Language:Go 82.5%Language:Dockerfile 10.3%Language:Makefile 7.2%