Inspired by killall. Special thanks to hanaral for the icon!
Kills all applications. An attempt at making a simple one file app in Python.
Requires GTK+-3.0, Granite, PyGObject and Python3. Right click on KillSwitch and select 'Run' or run via python3 KillSwitch
.
With AppEditor (recommended):
- Install AppEditor.
- Download KillSwitch (store it somewhere where it won't be accidentally deleted, i.e. in
~/Scripts
for instance). - Right click on KillSwitch and select "Create a Menu Entry".
- Configure it however you want.
Manual:
- Download KillSwitch (store it somewhere where it won't be accidentally deleted, i.e. in
~/Scripts
for instance). - 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
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.