Swayscript: Rename vpn to Vpn.
This commit is contained in:
parent
5ee8a8aeca
commit
ca3924a420
|
@ -4,14 +4,14 @@
|
||||||
function vpn() {
|
function vpn() {
|
||||||
notify_short
|
notify_short
|
||||||
if [[ "$(_vpn)" = "on" ]]; then
|
if [[ "$(_vpn)" = "on" ]]; then
|
||||||
nmcli connection down vpn
|
nmcli connection down Vpn
|
||||||
else
|
else
|
||||||
nmcli connection up vpn
|
nmcli connection up Vpn
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function _vpn() {
|
function _vpn() {
|
||||||
local state=$(nmcli connection show vpn | rg -i state.*activated)
|
local state=$(nmcli connection show Vpn | rg -i state.*activated)
|
||||||
[ "''${state}" != "" ] && printf on || printf off
|
[ "''${state}" != "" ] && printf on || printf off
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue