aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: a8e2adf0375545d329e4336d83a3d45d8ce5b948 (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
[![License: GPLv3+](https://archive.org/download/libreweb/license.svg)](https://www.gnu.org/licenses/gpl-3.0.txt)

# Livie is Video in Emacs

![screenshot](screenshot.png)

Livie allows the user to search youtube.com and play the video from `mpv`.

## Requirements

- `python >= 3.5`
- `python-requests`
- `python-beautifulsoup4`
- `python-lxml`
- `hypervideo`
- `mpv`

  `sudo pacman -S python mpv python-requests python-beautifulsoup4 python-lxml hypervideo`

## Installation

``` emacs-lisp
(require 'livie "~/.emacs.d/path/to/livie.el")
(setq livie-script-path (expand-file-name "path/to/livie.py" user-emacs-directory))
```

## Installation in emacs-personal

Create new dir:

    mkdir ~/.emacs.d/private/

Clone repo:

    git clone https://libregit.org/heckyel/livie.git ~/.emacs.d/private/livie

Open `settings.el` write the following:

``` emacs-lisp
(require 'livie "~/.emacs.d/private/livie/livie.el")
(setq livie-script-path (expand-file-name "private/livie/livie.py" user-emacs-directory))
```

## Usage

Just run `M-x livie` and enter a search query. `n`, `p` and `tab`
can be used to navigate the buffer.  Type `s` to enter another search.
To watch a video, press `<enter>`.