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

https://github.com/m0rphism/haskell-dmenu-pkill

dmenu script for killing applications. Can be sorted by process id or CPU/Memory usage.
https://github.com/m0rphism/haskell-dmenu-pkill

application dmenu haskell pkill

Last synced: 8 months ago
JSON representation

dmenu script for killing applications. Can be sorted by process id or CPU/Memory usage.

Awesome Lists containing this project

README

          

# haskell-dmenu-pkill
dmenu script for killing applications. Can be sorted by process id or CPU/Memory usage.

![dmenu-pkill screenshot](doc/dmenu-pkill.png)

Runtime Dependencies:
[dmenu](http://tools.suckless.org/dmenu/) or
[dmenu2](https://bitbucket.org/melek/dmenu2), and
the standard linux tools `ps` and `kill`.

Installation:
Either get the sources from this repository, or
[from hackage](https://hackage.haskell.org/package/dmenu-pkill).

Usage:

* `dmenu-pkill [OPTIONS] [-- DMENUOPTIONS]`

Spawns a dmenu process to let the user select processes to kill with `kill -9`.

All arguments, after the first `--` argument, are directly passed to `dmenu`.

Options:

* `-cpu`

Sort processes by CPU usage as displayed with `ps`.
* `-mem`

Sort processes by memory usage as displayed with `ps`.
* `-pid`

Sort processes by process id (default).

The application is build with the
[dmenu Haskell bindings](https://hackage.haskell.org/package/dmenu), which
support customizing the dmenu commandline options in a [configuration file](https://github.com/m0rphism/haskell-dmenu/blob/master/CONFIG.md).