blob: b127af329b0cdbbd88c7e106ddbe5a438502d375 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
[](https://www.gnu.org/licenses/gpl-3.0.txt)
# Livie is Video in Emacs

Livie allows the user to search youtube.com and play the video from `mpv`.
## Requirements
- `hypervideo`
- `curl`
- `mpv`
`sudo pacman -S mpv curl hypervideo`
## Installation
``` emacs-lisp
(require 'livie "~/.emacs.d/path/to/livie.el")
```
## Installation in emacs-personal
Create new dir:
mkdir ~/.emacs.d/private/
Clone repo:
git clone https://git.sr.ht/~heckyel/livie ~/.emacs.d/private/livie
Open `settings.el` write the following:
``` emacs-lisp
(require 'livie "~/.emacs.d/private/livie/livie.el")
```
## Usage
Just run `M-x livie` and enter a search query. `n`, `p` and `tab`
can be used to navigate the buffer.
| key | binding |
|-------------------|------------------------------|
| <key>n</key> | `next-line` |
| <key>p</key> | `previous-line` |
| <key>q</key> | `livie-quit` |
| <key>s</key> | `livie-search` |
| <key>></key> | `livie-search-next-page` |
| <key><</key> | `livie-search-previous-page` |
| <key>return</key> | `livie-watch-this-video` |
Type `s` to enter another search. To watch a video, press `<enter>`.
|