Togglable NetworkManager window for waybar using nmtui

This commit is contained in:
John Mertz 2021-07-27 01:05:13 -04:00 committed by John Mertz
parent c419c8d2ed
commit 4d2fbf6254
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
1 changed files with 9 additions and 0 deletions

9
waybar/waybar-nm.sh Executable file
View File

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