My Scripts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bin/killd

19 lines
474 B

#!/bin/bash
# Simple script that uses dmenu to get input, and then invokes killall -9 <input>
SCRIPT_PATH=$(dirname $0)
. "$SCRIPT_PATH/import/alert.sh" > /dev/null 2>&1
[ ! $(command -v error) ] && echo "[WARNING] Missing 'error.sh' import."
[ ! $(command -v dmenu) ] && error "Missing 'dmenu' dependency."
# Use dmenu to get input
dmenui () {
dmenu << EOF
EOF
}
input=$(dmenui)
[ -z $input ] && error "No input provided" 1 || echo "Killing $input"
killall -9 $input