There should be completely new default key bindings
The current key bindings (see https://github.com/mpv-player/mpv/blob/master/etc/input.conf for current mappings) are a bit dated. Many useless things are mapped on prominent spots (think of all the brightness etc. controls on the keys 1-9), while more useful commands like chapter skipping have awkward bindings on most keyboard layouts. Some commands are pretty much deprecated (like the controls for TV?) and should be removed entirely.
We should think about a good set of default bindings with sensible mappings. They should work on most of the common keyboard layouts.
There was some discussion on IRC and in other tickets, but nothing conclusive. This issue is for suggesting and discussing new bindings.
Maybe bind less keys by default so there's more room to assign more obvious bindings like a cycle audio or v cycle video.
Does someone actually use e.g. c cycle colormatrix on a regular basis?
I sugest everyone posts their input.conf and which default bindings they regularly use (except for the obvious stuff). And then someone has to try to come up with something that makes as much sense as possible.
ESC set fullscreen no
Meta+w quit
UP add chapter 1
DOWN add chapter -1
NEXT seek 10
Alt+RIGHT seek 50
PREV seek -5
LEFT seek -5
Alt+LEFT seek -60
s screenshot window
S screenshot video
Alt+s screenshot subtitles
R sub_reload
Custom key bindings I actually use:
ctrl+right seek +0.1
ctrl+left seek -0.1
RIGHT osd-msg-bar seek +1
LEFT osd-msg-bar seek -1
DOWN seek -20
UP seek +20
ß speed_mult 0.5
´ speed_mult 2
Ctrl+q quit
q ignore
O osd
o show_progress
Ctrl+n sub_step +1
Ctrl+m sub_step -1
END screenshot video
Shift+END screenshot subtitles
DEL cycle fullscreen
INS cycle pause
HOME frame_step
PGUP cycle ass-style-override
PGDWN cycle sub-visibility
< playlist_next
> playlist_prev
F11 add chapter -1
F12 add chapter +1
F10 show_chapters
F9 show_tracks
F8 show_playlist
ENTER cycle pause
Also here's a chart of the current default bindings: http://www.abload.de/img/mpbindingsq2o02.png (It's a bit crappy: text and buttons are not correctly aligned, inconsistent text sizes, etc. If someone wants the source svg, I can give it out.)
default Binding I use
! add chapter -1
@ add chapter 1
o osd
P show_progress
< playlist_next
> playlist_prev
j cycle sub
T cycle ontop
Shift+RIGHT no-osd seek 1 - exact
Shift+LEFT no-osd seek -1 - exact
Shift+UP no-osd seek 5 - exact
Shift+DOWN no-osd seek -5 - exact
9 add volume -1
0 add volume 1
q quit
Q quit_watch_later
SPACE cycle pause
m cycle mute
MOUSE_BTN0_DBL cycle fullscreen # toggle fullscreen on/off
RIGHT seek 10
LEFT seek -10
UP seek 60
DOWN seek -60
My Custom input.conf
ESC ignore
#Extra info
Meta+C show_chapters
Meta+R show_tracks
, no-osd seek -1 - exact
# Open current file in Finder
n run "open -R '${path}' "
# Reverse of o
O cycle osd-level -1
### MPlayer OSX Extended keybindings
Alt+Meta+LEFT add chapter -1
Alt+Meta+RIGHT add chapter 1
Meta+LEFT playlist_prev
Meta+RIGHT playlist_next
Meta+Up add volume 1
Meta+Down add volume -1
Alt+Meta+DOWN cycle mute
Current custom input.conf
p show_progress
q quit_watch_later
ESC set fullscreen no
Meta+w quit
UP add chapter 1
DOWN add chapter -1
+ add volume +1
- add volume -1
* cycle sub
/ cycle audio
p show_progress
ESC set fullscreen no
+ add volume +1
- add volume -1
* cycle sub
/ cycle audio
+1
UP add chapter 1
DOWN add chapter -1
-1
Btw, I use the default bindings.. I'm crazy O_O
I agree with pigoz
UP add chapter 1
DOWN add chapter -1
-1
RIGHT osd-msg-bar seek 10
LEFT osd-msg-bar seek -10
UP osd-msg-bar seek 60
DOWN osd-msg-bar seek -60
SHIFT+RIGHT osd-msg-bar seek 1 - exact
SHIFT+LEFT osd-msg-bar seek -1 - exact
SHIFT+UP osd-msg-bar seek 5 - exact
SHIFT+DOWN osd-msg-bar seek -5 - exact
PGUP osd-msg-bar seek 600 - exact
PGDWN osd-msg-bar seek -600 - exact
ESC cycle fullscreen 0 # default: quit
p show_progress # default: P
y show_chapters
x show_tracks # default: add sub-delay +0.1
c ignore # default: cycle colormatrix
> add chapter -1
< add chapter 1
u add sub-delay +0.1 # moved from: x
Does nobody use the default bindings for keys 1,2,...,0?
Chapter switching is remapped surprisingly often. How about mapping them to ins/del or home/end?
I'd suggest remapping the more obscure and "disruptive" bindings (like changing audio-delay, colormatrix) to combinations with ctrl.
p show_progress
Sure we can do that.
ESC set fullscreen no
Setting or switching fullscreen on ESC seems pretty common. What's up with that?
Setting or switching fullscreen on ESC seems pretty common. What's up with that?
It's a common OS X behaviour and everyone who contributed to this thread until now (except you!) is a OS X user :D
@wm4 ins/del would more inconvenient since they are not on the mac laptop keyboard. I rarely use the 1 2 for changing brightness. Why not swap them to make chapter prev/next to 1/2?
Sounds ok... we can probably completely remap 1,2,...,0.
ESC should ALWAYS (by default) get you out of fullscreen.
I'd suggest remapping the more obscure and "disruptive" bindings (like changing audio-delay, colormatrix) to combinations with ctrl.
Well since @pigoz talked about common behaviour on OS X, it would be more natural on OS X to combine with cmd (Meta) rather than Ctrl..
I wouldn't change that. cmd/meta is imo on the fringes. It's CTRL for the rest of the world as well as for other major OS-independent software.
Some possible solutions:
- Switch how "meta" and "ctrl" in input.conf is interpreted when running on OSX, so that e.g. "ctrl+a" will actually map to cmd+a.
- Add a new modifier, which maps to cmd on OSX, and to ctrl everywhere else, so you'd have "cmd+a" in input.conf, which would map to cmd on OSX and ctrl everywhere else.
- Make OSX user use ctrl always.
- Make Linux users use meta always.
Anyway, "obscure" commands could be put under shift instead, if ctrl is too controverse. Still reduces the number of possible mappings...
Just leave Ctrl alone please.. this is a *nix utility not a Mac application.
On Tue, Jun 11, 2013 at 12:34 PM, wm4 [email protected] wrote:
Some possible solutions:
- Switch how "meta" and "ctrl" in input.conf is interpreted when running on OSX, so that e.g. "ctrl+a" will actually map to cmd+a.
- Add a new modifier, which maps to cmd on OSX, and to ctrl everywhere else, so you'd have "cmd+a" in input.conf, which would map to cmd on OSX and ctrl everywhere else.
- Make OSX user use ctrl always.
- Make Linux users use meta always.
Anyway, "obscure" commands could be put under shift instead, if ctrl is too controverse. Still reduces the number of possible mappings...
— Reply to this email directly or view it on GitHubhttps://github.com/mpv-player/mpv/issues/103#issuecomment-19253715 .
I agree. it would only end up colliding with default Mac shortcuts.
Just leave Ctrl alone please.. this is a *nix utility not a Mac application. +1