From 2fef2493e6f8289cbbb778f5f78f1c87d74065cd Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 5 Dec 2019 00:05:15 +0000 Subject: proton utils: new pvpn executable --- net/jao-proton-utils.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'net') diff --git a/net/jao-proton-utils.el b/net/jao-proton-utils.el index 9992483..ca47faa 100644 --- a/net/jao-proton-utils.el +++ b/net/jao-proton-utils.el @@ -59,7 +59,7 @@ (defun jao-proton-vpn--do (things) (let ((b (pop-to-buffer (get-buffer-create "*pvpn*")))) (let ((inhibit-read-only t) - (cmd (format "sudo pvpn %s" things))) + (cmd (format "sudo protonvpn %s" things))) (delete-region (point-min) (point-max)) (insert cmd " ...") (shell-command cmd b)) @@ -67,17 +67,17 @@ (defun proton-vpn-status () (interactive) - (jao-proton-vpn--do "--status")) + (jao-proton-vpn--do "s")) (defun proton-vpn-connect (cc) (interactive "P") (let ((cc (when cc (read-string "Country code: ")))) - (jao-proton-vpn--do (if cc (format "-cc %s" cc) "-sc")) + (jao-proton-vpn--do (if cc (format "c -cc %s" cc) "c -sc")) (proton-vpn-status))) (defun proton-vpn-disconnect () (interactive) - (jao-proton-vpn--do "-d")) + (jao-proton-vpn--do "d")) (setq proton-vpn-mode-map (let ((map (make-keymap))) -- cgit v1.2.3