Togglable NetworkManager window for waybar using nmtui

This commit is contained in:
John Mertz 2021-07-27 01:05:13 -04:00
parent 4af7235289
commit e3b98b7aac
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