Browse Source

Togglable NetworkManager window for waybar using nmtui

master
John Mertz 6 months ago
parent
commit
e3b98b7aac
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      waybar/waybar-nm.sh

+ 9
- 0
waybar/waybar-nm.sh 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

Loading…
Cancel
Save