# this file: # https://dataswamp.org/~incal/conf/mpv/input.conf # # all mpv: # https://dataswamp.org/~incal/#mpv # # keycodes: # https://raw.githubusercontent.com/mpv-player/mpv/master/input/keycodes.c # # key search: # (how-many "^ctrl\\+i") # (let ((case-fold-search nil)) (re-search-forward "^alt\\+i " nil t)) # (how-many "^d " (point) (point-max)) # (re-search-forward "^a " (point-max) t) # # removed: # alt+u run sh -c "printf %s\\\\n \"$1 $2\" >> good.txt" -- ${path} ${time-pos}; show-text "good :)" q quit v cycle video-unscaled # subtitles w cycle sub-visibility alt+w cycle sub down W cycle sub # metadata F script-binding stats/display-stats-toggle f show-text "${?pause==yes:⏸ }${time-pos} [${volume}%] ${duration} -- ${filename}${?chapter:\n${chapter}}" # fs alt+s screenshot window d run sh -c "rem \"$1\"" -- ${filename}; playlist-next f8 run "rm" "${path}"; playlist-next # brightness/contrast ctrl+~ show-text "${brightness} ${contrast}" ctrl+! no-osd set brightness 0; no-osd set contrast 0; keypress ctrl+~ ctrl+h no-osd set brightness 2; no-osd set contrast 4; keypress ctrl+~ ctrl+n keypress ctrl+! h keypress ctrl+! n no-osd add brightness 1; no-osd add contrast 1; keypress ctrl+~ N no-osd add brightness -1; no-osd add contrast -1; keypress ctrl+~ alt+b no-osd add brightness -5; no-osd add contrast -5; keypress ctrl+~ b no-osd add brightness 1; keypress ctrl+~ B no-osd add brightness -1; keypress ctrl+~ ctrl+b no-osd set brightness 0; keypress ctrl+~ c no-osd add contrast 1; keypress ctrl+~ C no-osd add contrast -1; keypress ctrl+~ ctrl+c no-osd set contrast 0; keypress ctrl+~ # loop file ] cycle-values loop-file "inf" "no" # ab-loop { set ab-loop-a ${time-pos} } set ab-loop-b ${time-pos} \ no-osd set ab-loop-a ${time-pos}; set ab-loop-b ${=duration} | no-osd set ab-loop-a no; no-osd set ab-loop-b no; show-text "clear" ? show-text "ab-loop: ${ab-loop-a} - ${ab-loop-b}" # chapters ; show-text "${chapter}" ctrl+u add chapter -1 ctrl+o add chapter 1 # playlist o write-watch-later-config; playlist-next O playlist-next P add playlist-pos 5 R no-osd set playlist-pos 0 u write-watch-later-config; playlist-prev U playlist-prev # play p show-text "${time-pos} / ${duration}" SPACE cycle pause # goto beg/end r no-osd seek 0 absolute E no-osd seek -10 absolute # seek , frame-back-step . frame-step ctrl+j seek -1 ctrl+l seek 1 j seek -5 l seek 5 J seek -50 L seek 50 # audio A cycle audio ctrl+` show-text "${volume}%" # mute m cycle mute print cycle mute # volume K no-osd add volume -5; keypress ctrl+` k no-osd add volume -1; keypress ctrl+` i no-osd add volume 1; keypress ctrl+` I no-osd add volume 5; keypress ctrl+` pause no-osd add volume 5; keypress ctrl+` # NGE Yc(n)A 88/110 ctrl+i no-osd set volume 110; keypress ctrl+` ctrl+k no-osd set volume 88; keypress ctrl+` # speed = add speed 0.01 - add speed -0.01 + add speed 0.1 _ add speed -0.1 0 set speed 1 5 set speed 0.5 8 set speed 0.78; show-text "0.78" # reset home no-osd set video-zoom 0; no-osd set panscan 0; no-osd set video-pan-x 0; no-osd set video-pan-y 0 # zoom ins no-osd add panscan 0.025 del no-osd add panscan -0.025 PgUp no-osd add video-zoom 0.0125 PgDwn no-osd add video-zoom -0.0125 ctrl+PgUp no-osd add video-zoom 0.20 ctrl+PgDwn no-osd add video-zoom -0.20 z no-osd set video-zoom -0.60; no-osd set video-pan-x -0.25 # position / move ctrl+up no-osd add video-pan-y -0.25 alt+up no-osd add video-pan-y -0.034 up no-osd add video-pan-y -0.006 down no-osd add video-pan-y 0.006 alt+down no-osd add video-pan-y 0.034 ctrl+down no-osd add video-pan-y 0.25 left no-osd add video-pan-x -0.003 right no-osd add video-pan-x 0.003 # send keys with wmctrl(1)/xdotool(1) 1 set pause no 2 set pause yes # ctrl+alt+1 show-text "ctrl+alt+1 works" # DNC # ctrl+1 show-text "ctrl+1 works" # works # alt+1 show-text "alt+1 works" # works # ctrl+alt+1 show-text "ctrl+alt+1 works" # works # i keypress ctrl+alt+1 # works