#!/bin/bash
if [ "$(pgrep -c nmtui | cut -b 1)" -eq "0" ]; then
echo true
/usr/bin/xterm -e '/usr/bin/nmtui'
else
echo false
pkill nmtui 2&>1 /dev/null
fi