From ca3924a420816a1ce67989182269a9c9f5926737 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 17 Dec 2024 10:27:50 +0300 Subject: [PATCH] Swayscript: Rename vpn to Vpn. --- package/swayscript/script/Vpn.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/swayscript/script/Vpn.nix b/package/swayscript/script/Vpn.nix index b6759b3b..d5578cb9 100644 --- a/package/swayscript/script/Vpn.nix +++ b/package/swayscript/script/Vpn.nix @@ -4,14 +4,14 @@ function vpn() { notify_short if [[ "$(_vpn)" = "on" ]]; then - nmcli connection down vpn + nmcli connection down Vpn else - nmcli connection up vpn + nmcli connection up Vpn fi } 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 } '';