11 lines
161 B
Bash
11 lines
161 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
RUNNING=$(pgrep ncmpcpp)
|
||
|
|
||
|
if [ "$RUNNING" ]; then
|
||
|
kill $RUNNING 2&>1 /dev/null
|
||
|
else
|
||
|
echo "starting"
|
||
|
/usr/bin/xterm -e /usr/bin/ncmpcpp
|
||
|
fi
|