From b5092878d1b757f3e1cc778b428bae106fa7a35e Mon Sep 17 00:00:00 2001 From: inkch Date: Mon, 15 Jan 2024 01:42:12 +0900 Subject: [PATCH] mpv: add input.conf + ignored from other than working machines --- .chezmoiignore | 1 + dot_config/mpv/input.conf | 72 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 dot_config/mpv/input.conf diff --git a/.chezmoiignore b/.chezmoiignore index f016cf5..95ac1ab 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -11,6 +11,7 @@ README.md .config/alacritty/alacritty.toml .config/dunst .config/fontconfig +.config/mpv .config/polybar .config/zathura {{- end }} diff --git a/dot_config/mpv/input.conf b/dot_config/mpv/input.conf new file mode 100644 index 0000000..762bbfa --- /dev/null +++ b/dot_config/mpv/input.conf @@ -0,0 +1,72 @@ +# mpv keybindings +# +# Location of user-defined bindings: ~/.config/mpv/input.conf +# +# Lines starting with # are comments. Use SHARP to assign the # key. +# Copy this file and uncomment and edit the bindings you want to change. +# +# List of commands and further details: DOCS/man/input.rst +# List of special keys: --input-keylist +# Keybindings testing mode: mpv --input-test --force-window --idle +# +# Use 'ignore' to unbind a key fully (e.g. 'ctrl+a ignore'). +# +# Strings need to be quoted and escaped: +# KEY show-text "This is a single backslash: \\ and a quote: \" !" +# +# You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with +# the modifiers Shift, Ctrl, Alt and Meta (may not work on the terminal). +# +# The default keybindings are hardcoded into the mpv binary. +# You can disable them completely with: --no-input-default-bindings + +# Developer note: +# On compilation, this file is baked into the mpv binary, and all lines are +# uncommented (unless '#' is followed by a space) - thus this file defines the +# default key bindings. + + +## Seek units are in seconds, but note that these are limited by keyframes +RIGHT seek 5 +LEFT seek -5 +l seek 5 +h seek -5 +# Do smaller, always exact (non-keyframe-limited), seeks with shift. +# Don't show them on the OSD (no-osd). +Shift+RIGHT no-osd seek 1 exact +Shift+LEFT no-osd seek -1 exact +Shift+l no-osd seek 1 exact +Shift+h no-osd seek -1 exact +# Do larger seek with Ctrl +Ctrl+RIGHT seek 10 +Ctrl+LEFT seek -10 +Ctrl+l seek 10 +Ctrl+h seek -10 +# Do tiny (frame) seek with Alt +Alt+RIGHT frame-step +Alt+LEFT frame-back-step +Alt+l frame-step +Alt+h frame-back-step +# Mouse wheels, touchpad or other input devices that have axes +# if the input devices supports precise scrolling it will also scale the +# numeric value accordingly +WHEEL_UP seek 10 +WHEEL_DOWN seek -10 + +[ add speed -0.1 # scale playback speed +] add speed 0.1 +{ add speed -0.01 # scale playback speed +} add speed 0.01 +. revert-seek mark +, revert-seek +SPACE cycle pause +> playlist-next # skip to next file +< playlist-prev # skip to previous file +j add volume -2 +k add volume 2 +DOWN add volume -2 +UP add volume 2 +Ctrl+n cycle sub # cycle through subtitles +Ctrl+p cycle sub down # ...backwards +f cycle fullscreen # toggle fullscreen +; ab-loop