diff options
author | Rahguzar <[email protected]> | 2024-03-10 12:10:26 +0100 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-03-17 13:24:15 +0200 |
commit | 5c00a7bd546df8e87452edb18447851263aed2c2 (patch) | |
tree | b3e5b2aea3ac2e1bc42ff8486ce91d1312de9910 | |
parent | fe794975246f1910bfdc494e266817d33fd199df (diff) |
Command to quit and go forward/backward
-rw-r--r-- | yeetube-mpv.el | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/yeetube-mpv.el b/yeetube-mpv.el index 04f684a..77e28ca 100644 --- a/yeetube-mpv.el +++ b/yeetube-mpv.el @@ -123,7 +123,7 @@ to play local files." (message "yeetube: mpv disabled video"))) (defun yeetube-mpv-send-keypress (key) - "Send KEY to yeetube-mpv-process." + "Send KEY to `yeetube-mpv-process'." (interactive "sKey: ") (process-send-string "yeetube" key)) @@ -145,5 +145,21 @@ to play local files." (yeetube-mpv-send-keypress "_") (message "yeetube: toggle video")) +(defun yeetube-mpv-forward () + "Forward video." + (interactive) + (yeetube-mpv-send-keypress "[C")) + +(defun yeetube-mpv-backward () + "Go backwards in video." + (interactive) + (yeetube-mpv-send-keypress "[D")) + +(defun yeetube-mpv-quit () + "Quit mpv." + (interactive) + (yeetube-mpv-send-keypress "q") + (message "yeetube: quit")) + (provide 'yeetube-mpv) ;;; yeetube-mpv.el ends here |