summaryrefslogtreecommitdiff
path: root/README.md
blob: 20a13e9651e179a09a88aa79ce3819b020d7dd14 (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
54
55
56
57
# srtplay

Play .srt subtitle files in a TUI.

## Installation

Install [hare](https://harelang.org), [scdoc](https://git.sr.ht/~sircmpwn/scdoc),
and optionally [haredo](https://sr.ht/~autumnull/haredo).

### With haredo

```sh
git clone https://git.sr.ht/~stonks3141/srtplay
cd srtplay
git submodule update --init

haredo
sudo haredo install
```

### Without haredo

```sh
git clone https://git.sr.ht/~stonks3141/srtplay
cd srtplay
git submodule update --init

hare build .
scdoc < srtplay.1.scd > srtplay.1

install -Dm755 ./srtplay /usr/local/bin/srtplay
install -Dm644 ./srtplay.1 /usr/local/share/man/man1/srtplay.1
```

## Usage

```sh
srtplay <file>.srt
```

See the [man page](https://git.sr.ht/~stonks3141/srtplay/tree/main/item/srtplay.1.scd)
for further information.

### TUI key bindings

- `q`, `<Ctrl-C>`: exit the program
- `j`: fast-backward by 10 seconds
- `l`: fast-forward by 10 seconds
- `<left arrow>`: fast-backward by 5 seconds
- `<right arrow>`: fast-forward by 5 seconds
- `k`, `<space>`: pause or resume playback

## Contributing

[Send patches](https://git-send-email.io) and bug reports to
[~stonks3141/public-inbox@lists.sr.ht](mailto:~stonks3141/public-inbox@lists.sr.ht)
([archive](https://lists.sr.ht/~stonks3141/public-inbox)).