summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yeetube.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/yeetube.el b/yeetube.el
index b6f53ad..0b5528d 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -253,6 +253,11 @@ Example Usage:
(interactive)
(process-send-string "yeetube" "f")
(message "toggle fullscreen"))
+
+(defun yeetube-mpv-send-keypress (key)
+ "Send KEY to mpv process."
+ (interactive "sKeypress: ")
+ (process-send-string "yeetube" key))
"Toggle video on/off mpv."
(interactive)
(unless (string-match "mpv" yeetube-player)