From 2ddd3c8a691e05f9154bd31c8f6aaa9dbe40b683 Mon Sep 17 00:00:00 2001 From: Sylvain Herlédan Date: Sun, 4 Jun 2017 18:16:30 +0200 Subject: Add mpv configuration files. --- mpv.conf | 4 ++++ mpv_input.conf | 10 ++++++++++ setup.sh | 8 ++++++++ 3 files changed, 22 insertions(+) create mode 100644 mpv.conf create mode 100644 mpv_input.conf 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}" } -- cgit v1.2.3-70-g09d2