Code Monkey home page Code Monkey logo

fzf-kill's Introduction

fzf-kill

The no-nonsense task killer for your terminal.

screenshot_2023-04-28_21-53-54_742158876

How to install

yay -S fzf-kill

Or manually put the file into ~/.local/bin/fzf-kill

How to use

  • Open the program with fzf-kill.
  • Write the name of the process you want to kill and press ENTER.
  • That's it, there is not third step.

Available options

You can see the help with

fzf-kill --help

This will print all available options.

HELP:
 fzf-kill allow you to kill your programs in a quick and intuitive way
 without the cluttered user experience, 
 or the uncomfortable keybindings of other task killers.
 
 
 # BASIC COMMANDS
 * --parents           Show only parent processes. (default)
 * --all               Show both parent and children processes.
 
                       
 # ADVANCED OPTIONS    
 * --exclude           You can exclude a list of programs from appearing on the list.
                      
                       Use it like:
                       fzf-kill --exclude='word1|word2|word2'
 
                       You can also pipe it from a file like:
                       fzf-kill --exclude=$(cat ~/.config/fzf-kill/my_excludes.txt)
 
 * --loop              fzf-kill will stay open even after killing a program.

                       
 * --fzf_default_ops   You can  use it to override the env var FZF_DEFAULT_OPTS.
                       
                       Use it like:
                       fzf-kill --fzf_default_ops="--min-height=100 --prompt 'kill -9 '"
                       
 * --showroot          List both root and user processes running in the session.
                       By default is disabled. Meaning by default we show only 
                       processes owned by the user. 
                       
                       Please note that this option won't let you kill anything
                       launched by root unless you are root, or run fzf-kill with
                       sudo privileges (which by general rule, you shouldn't).

Disclaimer

This is a kinda simple script. I upload it in case you need to cover this case of use ASAP, but I encourage you to read the code, fork it, and adapt it to your needs.

PRs and more

Mostly bugfixes will be accepted. I'm opened to ideas about possible improvements, but take into condideration this program has two main goals:

  • Covering the very specific case of use of killing stuff fast and user friendly, while using super low resources. (Nice program for a keybinding, for example).
  • Keeping the code maintainable. You probably noticed you have many other great task killers out there, like fkill, htop, btop, and a long etc. And the reason why I coded this was my fear of those programs being eventually too big and too hard to maintain. And the high difficulty involved in modifing their code by the average user.

fzf-kill's People

Contributors

zeioth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ar4sgpt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.