2020-08-21 04:16:38 +00:00
|
|
|
# videoclip
|
2020-08-21 04:26:24 +00:00
|
|
|
Easily create videoclips with mpv in a few keypresses.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
### Install as a part of your [dotfiles](https://wiki.archlinux.org/index.php/Dotfiles#Tracking_dotfiles_directly_with_Git)
|
|
|
|
```
|
|
|
|
$ config submodule add 'https://github.com/Ajatt-Tools/videoclip.git' ~/.config/mpv/scripts/videoclip
|
|
|
|
```
|
|
|
|
### Install by cloning the repo
|
|
|
|
```
|
|
|
|
$ git clone 'https://github.com/Ajatt-Tools/videoclip.git' ~/.config/mpv/scripts/videoclip
|
|
|
|
```
|
|
|
|
Open or create ```~/.config/mpv/scripts/modules.lua``` and add these lines:
|
|
|
|
```
|
|
|
|
local mpv_scripts_dir_path = os.getenv("HOME") .. "/.config/mpv/scripts/"
|
|
|
|
function load(relative_path) dofile(mpv_scripts_dir_path .. relative_path) end
|
|
|
|
load("videoclip/videoclip.lua")
|
|
|
|
```
|
2020-08-21 04:28:58 +00:00
|
|
|
## Updating
|
|
|
|
Submodules are updated using standard git commands:
|
|
|
|
```
|
|
|
|
$ config submodule update --remote --merge
|
|
|
|
```
|
|
|
|
or
|
|
|
|
```
|
|
|
|
$ cd ~/.config/mpv/scripts/videoclip && git pull
|
|
|
|
```
|