scripts/waybar/waybar-nmtui.sh

10 lines
188 B
Bash
Raw Normal View History

2020-09-11 15:00:39 +00:00
#!/bin/bash
if [ "$(pgrep -c nmtui | cut -b 1)" -eq "0" ]; then
2020-11-23 09:35:26 +00:00
echo true
/usr/bin/xterm -e '/usr/bin/nmtui'
2020-09-11 15:00:39 +00:00
else
2020-11-23 09:35:26 +00:00
echo false
pkill nmtui 2&>1 /dev/null
2020-09-11 15:00:39 +00:00
fi