diff options
author | jao <jao@gnu.org> | 2019-12-05 00:05:15 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2019-12-05 00:05:15 +0000 |
commit | 2fef2493e6f8289cbbb778f5f78f1c87d74065cd (patch) | |
tree | f729cbb67b8c82a552d1b23d60333a10c3090e2e /net | |
parent | c3cdb5595c1293b6b968a0ee1026a081ec0b2e3f (diff) | |
download | elibs-2fef2493e6f8289cbbb778f5f78f1c87d74065cd.tar.gz elibs-2fef2493e6f8289cbbb778f5f78f1c87d74065cd.tar.bz2 |
proton utils: new pvpn executable
Diffstat (limited to 'net')
-rw-r--r-- | net/jao-proton-utils.el | 8 |
1 files changed, 4 insertions, 4 deletions
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))) |