Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pongloongyeat/killswitch

One file to kill them all.
https://github.com/pongloongyeat/killswitch

Last synced: 14 days ago
JSON representation

One file to kill them all.

Awesome Lists containing this project

README

        


KillSwitch

![screenshot](screenshot.png?raw=true)

Inspired by [killall](https://www.reddit.com/r/MacOS/comments/lt1vlh/a_simple_automator_app_with_an_intuitive_icon/). Special thanks to [hanaral](https://github.com/hanaral) for the icon!

Kills all applications. An attempt at making a simple one file app in Python.

## Running

Requires [GTK+-3.0](https://www.gtk.org/), [Granite](https://github.com/elementary/granite/), [PyGObject](https://pygobject.readthedocs.io/en/latest/) and [Python3](https://www.python.org/). Right click on KillSwitch and select 'Run' or run via `python3 KillSwitch`.

## Adding to Applications Menu

With [AppEditor](https://github.com/donadigo/appeditor) (recommended):

1. Install [AppEditor](https://github.com/donadigo/appeditor).
2. Download KillSwitch (store it somewhere where it won't be accidentally deleted, i.e. in `~/Scripts` for instance).
3. Right click on KillSwitch and select "Create a Menu Entry".
4. Configure it however you want.

Manual:

1. Download KillSwitch (store it somewhere where it won't be accidentally deleted, i.e. in `~/Scripts` for instance).
2. Create a `com.github.pongloongyeat.killswitch.desktop` file in `~/.local/share/applications` with the following

```
[Desktop Entry]
Type=Application
Name=KillSwitch
Exec=/path/to/KillSwitch
Icon=/path/to/icon.svg
```

## Debugging

Under the `AppInfo` class, comment out `os.system("pkill {}".format(self.exec_name))` and run via Terminal. Maybe a future, more feature-rich version that's not intended to be written in a single file can have a debugging flag/mode.