From a5c854fcc6958980150baee3f662db54742007e8 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Sat, 6 Aug 2022 13:22:37 +0200 Subject: [PATCH] Dotfiles: Add mpv config --- files/_config/mpv.conf | 25 +++++++++++++++++++++++++ tasks/usersettings.yml | 4 ++++ 2 files changed, 29 insertions(+) create mode 100644 files/_config/mpv.conf diff --git a/files/_config/mpv.conf b/files/_config/mpv.conf new file mode 100644 index 0000000..d3cf040 --- /dev/null +++ b/files/_config/mpv.conf @@ -0,0 +1,25 @@ +## Show time AND frame number in terminal +term-status-msg='${playback-time/full} (${estimated-frame-number}) / ${duration} (${estimated-frame-count}) (${percent-pos}%)\n${?frame-drop-count:${!frame-drop-count==0:dropped frames: ${frame-drop-count}\n}}${?chapter:chapter: ${chapter}\n}av sync (Ctrl +/-): ${avsync} - speed: ${speed}\ncache: ${demuxer-cache-duration}s' + +## Modify cursor visibility +cursor-autohide-fs-only +cursor-autohide=500 + +## Show on screen controller, but no additional seek bar +osc +no-osd-bar + +## Enable terminal colors +msg-color + +## special profiles +[downmix] +af=lavfi="pan=stereo|FL < 0.5*FC + 0.3*FLC + 0.3*FL + 0.3*BL + 0.3*SL + 0.5*LFE | FR < 0.5*FC + 0.3*FRC + 0.3*FR + 0.3*BR + 0.3*SR + 0.5*LFE",lavfi="acompressor=10" + +[mono] +af=lavfi=[pan=1c|c0=0.5*c0+0.5*c1] + +[extension.gif] +cache=no +no-pause +loop-file=yes diff --git a/tasks/usersettings.yml b/tasks/usersettings.yml index 1947484..bccb34f 100644 --- a/tasks/usersettings.yml +++ b/tasks/usersettings.yml @@ -73,6 +73,10 @@ src: "{{ role_path }}/files/_vimrc", dest: "{{ ansible_user_dir }}/.vimrc", } + - { + src: "{{ role_path }}/files/_config/mpv.conf", + dest: "{{ ansible_user_dir }}/.config/mpv/", + } - { src: "{{ role_path }}/files/_oh-my-zsh/jtbx.zsh-theme", dest: "{{ ansible_user_dir }}/.oh-my-zsh/custom/themes/jtbx.zsh-theme",