scripts/waybar/waybar-nm.sh

10 lines
142 B
Bash
Raw Normal View History

#!/bin/bash
RUNNING=$(pgrep nmtui)
if [ "$RUNNING" ]; then
kill $RUNNING 2&>1 /dev/null
else
/usr/bin/xterm -e '/usr/bin/nmtui'
fi