Improved polybar to include wireguard switch
parent
b75ad20729
commit
ba536feee5
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
connection="wg0"
|
||||
connected="$(nmcli -f GENERAL.STATE con show $connection | awk '{print $2}')"
|
||||
|
||||
if [[ $connected == "activated" ]]; then
|
||||
nmcli connection down $connection
|
||||
else
|
||||
nmcli connection up $connection
|
||||
fi
|
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
connection="wg0"
|
||||
connected="$(nmcli -f GENERAL.STATE con show $connection | awk '{print $2}')"
|
||||
|
||||
if [[ $connected == "activated" ]]; then
|
||||
echo ""
|
||||
else
|
||||
echo ""
|
||||
fi
|
Reference in new issue