summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-08-18 16:14:16 +0300
committerThanos Apollo <[email protected]>2023-08-18 16:14:16 +0300
commita6b10db1cb7e911582a8c759b15b8691be515fdd (patch)
tree1070d03cce25e55988a0b1ba7255435c6abae2fe
parent2850fb0a2df9f5b123f2da5ff0e373b9b69649b4 (diff)
Add yeetube-mpv-send-keypress
-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)