scripts/waybar/waybar-nm.sh

10 lines
143 B
Bash
Executable File

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