Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7ee11bd
Add files via upload
Suzie97 Jul 3, 2021
79af099
Delete requirements.txt
Suzie97 Jul 3, 2021
a8bb1db
Delete COPYING
Suzie97 Jul 3, 2021
21ae1e1
Delete .gitignore
Suzie97 Jul 3, 2021
4ff20cd
Delete KillSwitch
Suzie97 Jul 3, 2021
dcbe191
Delete icon.svg
Suzie97 Jul 3, 2021
0493b29
Create MainWindow.vala
Suzie97 Jul 3, 2021
088804e
Create Application.vala
Suzie97 Jul 3, 2021
4cae8b3
Create killswitch.desktop
Suzie97 Jul 3, 2021
6dd6513
Create appdata.xml file
Suzie97 Jul 3, 2021
9c5d954
Delete screenshot.png
Suzie97 Jul 3, 2021
fdd615d
Add screenshot
Suzie97 Jul 3, 2021
29f83fe
Delete screenshot.png
Suzie97 Jul 3, 2021
50f6841
Add files via upload
Suzie97 Jul 3, 2021
d999482
Delete screenshot.png
Suzie97 Jul 3, 2021
f608b85
Add screenshot
Suzie97 Jul 3, 2021
b3e18c5
Update README.md
Suzie97 Jul 3, 2021
7cbf908
Update README.md
Suzie97 Jul 3, 2021
40388e0
Update src/Application.vala
Suzie97 Jul 8, 2021
7273640
Add files via upload
Suzie97 Jul 10, 2021
ec29a80
Create 128
Suzie97 Jul 10, 2021
0e7d2e5
Delete 128
Suzie97 Jul 10, 2021
4418ae9
Create 128.svg
Suzie97 Jul 10, 2021
0dded8d
Create com.github.pongloongyeat.killswitch.svg
Suzie97 Jul 10, 2021
7621918
Create com.github.pongloongyeat.killswitch.svg
Suzie97 Jul 10, 2021
a9acb91
Create com.github.pongloongyeat.killswitch.svg
Suzie97 Jul 10, 2021
8d8dd6f
Create com.github.pongloongyeat.killswitch.svg
Suzie97 Jul 10, 2021
e79680f
Create com.github.pongloongyeat.killswitch.svg
Suzie97 Jul 10, 2021
bfadda4
Rename 128.svg to com.github.pongloongyeat.killswitch.svg
Suzie97 Jul 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore

This file was deleted.

197 changes: 0 additions & 197 deletions KillSwitch

This file was deleted.

9 changes: 4 additions & 5 deletions COPYING → LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down Expand Up @@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

Expand All @@ -664,12 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.

The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

<https://www.gnu.org/licenses/why-not-lgpl.html>.
34 changes: 2 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,8 @@
<img align="left" width="64" height="64" src="icons/icon.svg">
<h1 class="rich-diff-level-zero">KillSwitch</h1>

![screenshot](screenshot.png?raw=true)
![screenshot](app_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

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

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.

<b>Manual:</b>

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.
A simple app to kill all applications.
Binary file added app_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading