~skiqqy/bin

ref: aac55bff5398dd39a0048bfcb48a4ecf70e1f775 bin/killd -rwxr-xr-x 474 bytes
aac55bffStephen Cochrane Added my goto script 1 year, 6 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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