mpv: update install script
This commit is contained in:
parent
9ad6441b3a
commit
561a778547
13
config.yaml
13
config.yaml
|
@ -248,16 +248,6 @@ actions:
|
||||||
ln -fs ~/.config/neomutt/mbsyncrc ~/.mbsyncrc
|
ln -fs ~/.config/neomutt/mbsyncrc ~/.mbsyncrc
|
||||||
ln -fs ~/.config/neomutt/urlview ~/.urlview
|
ln -fs ~/.config/neomutt/urlview ~/.urlview
|
||||||
|
|
||||||
sponsorblock: >
|
|
||||||
test -d ~/.config/mpv/scripts/sponsorblock_shared ||
|
|
||||||
git clone
|
|
||||||
https://github.com/po5/mpv_sponsorblock
|
|
||||||
~/.config/mpv/scripts;
|
|
||||||
|
|
||||||
rm -f
|
|
||||||
~/.config/mpv/scripts/LICENSE
|
|
||||||
~/.config/mpv/scripts/README.md
|
|
||||||
|
|
||||||
ranger_icons:
|
ranger_icons:
|
||||||
git clone
|
git clone
|
||||||
https://github.com/alexanderjeurissen/ranger_devicons
|
https://github.com/alexanderjeurissen/ranger_devicons
|
||||||
|
@ -272,6 +262,7 @@ actions:
|
||||||
pam_gpg: _pam-gpg-strap
|
pam_gpg: _pam-gpg-strap
|
||||||
make_theme: _make_theme
|
make_theme: _make_theme
|
||||||
install_meta: install_meta
|
install_meta: install_meta
|
||||||
|
install_mpv: _mpv_install
|
||||||
filter_backgrounds: _backgrouds_filter
|
filter_backgrounds: _backgrouds_filter
|
||||||
git_projects: _git_projects
|
git_projects: _git_projects
|
||||||
|
|
||||||
|
@ -365,7 +356,7 @@ dotfiles: # Just a bunch of paths and action mappings
|
||||||
src: mpv.conf
|
src: mpv.conf
|
||||||
dst: ~/.config/mpv/mpv.conf
|
dst: ~/.config/mpv/mpv.conf
|
||||||
actions:
|
actions:
|
||||||
- sponsorblock
|
- install_mpv
|
||||||
|
|
||||||
dav:
|
dav:
|
||||||
src: dav/
|
src: dav/
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
clean() {
|
||||||
|
rm -rf "$TMPDIR"
|
||||||
|
cd "$SCRIPT_DIR"
|
||||||
|
rm README.md LICENSE
|
||||||
|
}
|
||||||
|
trap clean EXIT
|
||||||
|
|
||||||
|
SCRIPT_DIR="$HOME/.config/mpv/scripts"
|
||||||
|
TMPDIR=(mktemp -d)
|
||||||
|
|
||||||
|
mkdir -p "$SCRIPT_DIR"
|
||||||
|
|
||||||
|
# Sponsorblock
|
||||||
|
|
||||||
|
if ! test -f "$SCRIPT_DIR/sponsorblock.lua"; then
|
||||||
|
git clone https://github.com/po5/mpv_sponsorblock "$TMPDIR/sponsorblock"
|
||||||
|
mv "$TMPDIR/sponsorblock"/* "$SCRIPT_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# mpris support, media notification and controll from kdeconnect
|
||||||
|
if ! test -f "$SCRIPT_DIR/mpris.so"; then
|
||||||
|
git clone https://github.com/hoyon/mpv-mpris "$TMPDIR/mpris"
|
||||||
|
make -C "$TMPDIR/mpris" install
|
||||||
|
fi
|
Reference in New Issue