From 6036a333f4bf66dd5b4d62b7534cb08aefc31823 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Thu, 13 Jun 2024 14:48:19 +1000 Subject: [mpv][inputrc] Add mpv and inputrc --- misc/.config/mpv/input.conf | 2 ++ misc/.config/mpv/mpv.conf | 30 ++++++++++++++++++++++++++++++ misc/.inputrc | 12 ++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 misc/.config/mpv/input.conf create mode 100644 misc/.config/mpv/mpv.conf create mode 100644 misc/.inputrc diff --git a/misc/.config/mpv/input.conf b/misc/.config/mpv/input.conf new file mode 100644 index 0000000..890da80 --- /dev/null +++ b/misc/.config/mpv/input.conf @@ -0,0 +1,2 @@ +PREV seek -15 +NEXT stop diff --git a/misc/.config/mpv/mpv.conf b/misc/.config/mpv/mpv.conf new file mode 100644 index 0000000..a3f5d24 --- /dev/null +++ b/misc/.config/mpv/mpv.conf @@ -0,0 +1,30 @@ +save-position-on-quit +# Uncomment this line to load the profile by default +# Otherwise, use `--profile=emacsconf-talks` +# profile=emacsconf-talks + +script-opts=ytdl_hook-ytdl_path=/usr/bin/yt-dlp +ytdl-format="bestvideo[height<=?720]+bestaudio/best" +osc=no + +[emacsconf-talks] +# Positioning +video-zoom=-0.15 +video-pan-y=-0.055 +sub-use-margins=yes +sub-scale-by-window=yes +sub-pos=103 +sub-margin-x=150 +sub-margin-y=40 +# Style +sub-font="Clear Sans Bold" +sub-color="1/0.82/0" +sub-blur=0.2 +sub-scale=0.9 +sub-font-size=40 +sub-border-size=0 +sub-border-color=0/1 +sub-shadow-color=0/1 +sub-shadow-offset=1.2 +sub-ass-force-style=Kerning=yes +sub-ass-line-spacing=0 diff --git a/misc/.inputrc b/misc/.inputrc new file mode 100644 index 0000000..9ef6cbc --- /dev/null +++ b/misc/.inputrc @@ -0,0 +1,12 @@ +# Reduce tab completion key presses and show suggestions +set show-all-if-ambiguous on +# Color files by types +set colored-stats On +# Append char to indicate type +set visible-stats On +# Mark symlinked directories +set mark-symlinked-directories On +# Color the common prefix +set colored-completion-prefix On +# Color the common prefix in menu-complete +set menu-complete-display-prefix On -- cgit v1.2.3