diff options
author | Thanos Apollo <[email protected]> | 2024-02-08 09:22:45 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-02-08 09:22:45 +0200 |
commit | 039c3c6665cf047adac061d9569df9dfc90c719b (patch) | |
tree | a6828e79edc59094912b19e2ca8c04442a5e1105 | |
parent | 059300a2e0303e325332c4486f8b97396748184e (diff) |
Add yeetube-mpv-toggle-torsocks
-rw-r--r-- | yeetube-mpv.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/yeetube-mpv.el b/yeetube-mpv.el index f0c7881..4eb0096 100644 --- a/yeetube-mpv.el +++ b/yeetube-mpv.el @@ -40,6 +40,15 @@ (defvar yeetube-mpv-torsocks (executable-find "torsocks") "Path to torsocks executable.") +(defun yeetube-mpv-toggle-torsocks () + "Toggle torsocks." + (interactive) + (pcase yeetube-mpv-torsocks + ('t (setf yeetube-mpv-torsocks nil) + (message "yeetube: Torsocks disabled")) + ('nil (setf yeetube-mpv-torsocks t) + (message "yeetube: Torsocks enabled")))) + (defun yeetube-mpv-check () "Check if mpv and yt-dlp is installed." (unless (and (executable-find "mpv") |