aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2024-06-13 14:48:19 +1000
committerYuchen Pei <id@ypei.org>2024-06-13 14:48:19 +1000
commit6036a333f4bf66dd5b4d62b7534cb08aefc31823 (patch)
tree94c6dd0ba2e6164569dac93af1e3ba88d797e797
parentc63a897c0f9320e0b2b0a20f0de5ea847b423127 (diff)
[mpv][inputrc] Add mpv and inputrc
-rw-r--r--misc/.config/mpv/input.conf2
-rw-r--r--misc/.config/mpv/mpv.conf30
-rw-r--r--misc/.inputrc12
3 files changed, 44 insertions, 0 deletions
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