Skip to content

pongloongyeat/killswitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KillSwitch

screenshot

Inspired by killall. Special thanks to hanaral for the icon!

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

Running

Requires GTK+-3.0, Granite, PyGObject and Python3. Right click on KillSwitch and select 'Run' or run via python3 KillSwitch.

Adding to Applications Menu

With AppEditor (recommended):

  1. Install 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.