aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mpv.conf4
-rw-r--r--mpv_input.conf10
-rwxr-xr-xsetup.sh8
3 files changed, 22 insertions, 0 deletions
diff --git a/mpv.conf b/mpv.conf
new file mode 100644
index 0000000..49296fa
--- /dev/null
+++ b/mpv.conf
@@ -0,0 +1,4 @@
+profile=opengl-hq
+hwdec=vdpau
+scale=ewa_lanczossharp
+cscale=ewa_lanczossharp
diff --git a/mpv_input.conf b/mpv_input.conf
new file mode 100644
index 0000000..a40d524
--- /dev/null
+++ b/mpv_input.conf
@@ -0,0 +1,10 @@
+Alt+RIGHT add video-rotate 90
+Alt+LEFT add video-rotate -90
+Alt+- add video-zoom -0.25
+Alt+= add video-zoom 0.25
+Alt+j add video-pan-x -0.05
+Alt+l add video-pan-x 0.05
+Alt+i add video-pan-y 0.05
+Alt+k add video-pan-y -0.05
+/ add ao-volume -2
+* add ao-volume 2
diff --git a/setup.sh b/setup.sh
index 2e8b81a..8542957 100755
--- a/setup.sh
+++ b/setup.sh
@@ -173,6 +173,9 @@ create_symlinks()
rm -rf "${install_dir}/.rtorrent.rc"
ln -sfT "${cfg_dir}/rtorrentrc" "${install_dir}/.rtorrent.rc"
+
+ rm -rf "${install_dir}/.config/mpv"
+ ln -sfT "${cfg_dir}/mpv" "${install_dir}/.config/mpv"
}
# Directory creation ----------------------------------------------------------
@@ -189,6 +192,7 @@ create_dirs()
mkdir -p "${root_dir}/.local/config/git"
mkdir -p "${root_dir}/.local/config/sxiv"
mkdir -p "${root_dir}/.local/config/sxiv/exec"
+ mkdir -p "${root_dir}/.local/config/mpv"
mkdir -p "${root_dir}/docs/downloads"
mkdir -p "${root_dir}/docs/screenshots"
@@ -228,6 +232,10 @@ copy_files()
"${dst_dir}/.local/config/sxiv/exec/image-info"
cp -r "${src_dir}/bin/key-handler.sh" \
"${dst_dir}/.local/config/sxiv/exec/key-handler"
+ cp -r "${src_dir}/mpv.conf" \
+ "${dst_dir}/.local/config/mpv/mpv.conf"
+ cp -r "${src_dir}/mpv_input.conf" \
+ "${dst_dir}/.local/config/mpv/input.conf"
configure_rtorrent "${src_dir}" "${dst_dir}"
}