commit 68c16d10a26c3445165f308b85090cfc9eada698
parent 98c3d093c22cb0b6690cd975bb59eba9c65d8284
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Sat, 22 Aug 2020 15:10:55 -0700
Tweak mpv config
Diffstat:
3 files changed, 61 insertions(+), 101 deletions(-)
diff --git a/mpv/.config/mpv/.mpv.conf.swp b/mpv/.config/mpv/.mpv.conf.swp
Binary files differ.
diff --git a/mpv/.config/mpv/input.conf b/mpv/.config/mpv/input.conf
@@ -1,80 +1,56 @@
# mpv input config, roughly vi keybindings.
-# modifiers masks: Meta, Ctrl, Alt, Meta
-# disable default: --no-input-default-bindings
# keybind testing: --input-test --force-window --idle
-# basics
+# exit
CLOSE_WIN quit
-SPACE cycle pause
-p cycle pause
-m cycle mute
ctrl+c quit 4
-
-# exit
q quit
s quit-watch-later
-# seeking
-. frame-step
-, frame-back-step
-
-l seek 3
-h seek -3
-k seek 30
-j seek -30
-b seek -90
-e seek 90
-w seek 90
-Ctrl+d seek -300
-Ctrl+u seek 300
-
-Shift+l no-osd seek 1 exact
-Shift+h no-osd seek -1 exact
-Shift+k no-osd seek 5 exact
-Shift+j no-osd seek -5 exact
+# overlay
+ctrl+p show-progress
+ctrl+h script-binding stats/display-stats-toggle
+: script-binding console/enable
-# window
+# toggle values
+p cycle pause
+m cycle mute
v cycle video
f cycle fullscreen
-T cycle-values video-aspect-override "16:9" "4:3" "2.35:1" "-1"
S cycle-values video-unscaled "yes" "no"
-# viewpoint
-Alt+d set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0
-Alt+h add video-pan-x -0.1
-Alt+l add video-pan-x 0.1
-Alt+k add video-pan-y -0.1
-Alt+j add video-pan-y 0.1
-Alt+i add video-zoom 0.1
-Alt+o add video-zoom -0.1
-
-# speed controls
-o multiply speed 1.1
-i multiply speed 1/1.1
-0 set speed 1.0
-
-# HUD
-ctrl+o script-binding osc/visibility
-ctrl+p show-progress
-ctrl+s script-binding stats/display-stats
-ctrl+S script-binding stats/display-stats-toggle
-/ script-binding console/enable
-
-# audio sync
-ctrl++ add audio-delay 0.100
-ctrl+- add audio-delay -0.100
-
-# view
-alt+C add contrast -1
-alt+c add contrast 1
-alt+B add brightness -1
-ctrl+alt+b add brightness 1
-alt+G add gamma -1
-alt+g add gamma 1
-alt+S add saturation -1
-alt+s add saturation 1
-
-# system
-ctrl+h cycle-values hwdec "auto" "no"
-d cycle deinterlace
+# seeking
+h frame-back-step
+j seek -3
+k seek 3
+l frame-step
+w seek 30
+b seek -30
+ctrl+d seek -90
+ctrl+u seek 90
+ctrl+b seek -300
+ctrl+f seek 300
+shift+g seek -0.01 absolute
+g seek 0 absolute
+
+# zoom and pan
+ctrl+h add video-pan-x -0.1
+ctrl+l add video-pan-x 0.1
+ctrl+k add video-pan-y -0.1
+ctrl+j add video-pan-y 0.1
+ctrl+i add video-zoom 0.1
+ctrl+o add video-zoom -0.1
+# reset
+ctrl+; set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0
+
+# playback speed
+o add speed 0.1
+i add speed -0.1
+shift+o multiply speed 1.1
+shift+i multiply speed 1/1.1
+= set speed 1.0
+
+# audio video sync
+ctrl+. add audio-delay 0.100
+ctrl+, add audio-delay -0.100
diff --git a/mpv/.config/mpv/mpv.conf b/mpv/.config/mpv/mpv.conf
@@ -1,47 +1,31 @@
# mpv config
+# terminal
+no-msg-color
+quiet
+
+# scale only videos too large for the window
+video-unscaled=downscale-big
+
+# disable built in keybinds
no-input-default-bindings
-fs=no
-autofit-larger=100%x100%
-# keep open on exit
-#keep-open=yes
+# keep open on EOF
+keep-open=yes
# show window even if no video is cached
-force-window=immediate
+#force-window=immediate
+# disable status bar
osc=no
-ontop=no
-#profile=gpu-hq
-#video-sync=display-resample
-hwdec=auto
-# audio
-#audio-device=alsa/default
-#audio-pitch-correction=no
-#audio-channels=5.1
-#audio-channels=auto
+# disable cursor
+cursor-autohide=0
+
+# use system keyboard settings, see xset(1)
+native-keyrepeat
# cache
-cache=yes
-#demuxer-max-bytes=50M
-#demuxer-max-back-bytes=10M
cache-pause=yes
-
-# etc
-#user-agent="Mozilla/5.0"
-# source config
-#include=/path/to/the/file/you/want/to/include
-
-# profiles
-# example: --profile=eye-cancer
-[contrast]
-brightness=-14
-contrast=-14
-vf=amplify
-[edge]
-vf=edgedetect=0.1,hqdn3d=10,gblur=0.9
-[cedge]
-vf=edgedetect=0.1:mode=colormix,hqdn3d=10,gblur=0.9
-contrast=10
-brightness=-10
+demuxer-max-bytes=100K
+demuxer-max-back-bytes=0