Add OSD menu keybindings for Apple Remote.
[mplayer/greg.git] / etc / menu.conf
bloba4b7f046bc115e89e524e6a0dc795a868ada67ee
1 <keybindings name="default">
2     <binding key="UP" cmd="menu up" />
3     <binding key="DOWN" cmd="menu down" />
4     <binding key="LEFT" cmd="menu left" />
5     <binding key="RIGHT" cmd="menu right" />
6     <binding key="ENTER" cmd="menu ok" />
7     <binding key="ESC" cmd="menu cancel" />
8     <binding key="HOME" cmd="menu home" />
9     <binding key="END" cmd="menu end" />
10     <binding key="PGUP" cmd="menu pageup" />
11     <binding key="PGDWN" cmd="menu pagedown" />
12     <binding key="JOY_UP" cmd="menu up" />
13     <binding key="JOY_DOWN" cmd="menu down" />
14     <binding key="JOY_LEFT" cmd="menu left" />
15     <binding key="JOY_RIGHT" cmd="menu right" />
16     <binding key="JOY_BTN0" cmd="menu ok" />
17     <binding key="JOY_BTN1" cmd="menu cancel" />
18     <binding key="AR_VUP" cmd="menu up" />
19     <binding key="AR_VDOWN" cmd="menu down" />
20     <binding key="AR_PREV" cmd="menu left" />
21     <binding key="AR_NEXT" cmd="menu right" />
22     <binding key="AR_PLAY" cmd="menu ok" />
23     <binding key="AR_MENU" cmd="menu cancel" />
24     <binding key="AR_PREV_HOLD" cmd="menu home" />
25     <binding key="AR_NEXT_HOLD" cmd="menu end" />
26 </keybindings>
27 <keybindings name="list" parent="default">
28     <binding key="AR_PREV" cmd="menu pageup" />
29     <binding key="AR_NEXT" cmd="menu pagedown" />
30 </keybindings>
31 <keybindings name="filesel" parent="list">
32     <binding key="BS" cmd="menu left" />
33 </keybindings>
34 <keybindings name="cmdlist" parent="list">
35     <binding key="AR_PREV" cmd="menu left" />
36     <binding key="AR_NEXT" cmd="menu right" />
37 </keybindings>
38 <keybindings name="txt" parent="list" />
39 <keybindings name="pt" parent="list" />
40 <keybindings name="pref" parent="list">
41     <binding key="AR_PREV" cmd="menu left" />
42     <binding key="AR_NEXT" cmd="menu right" />
43     <binding key="AR_PREV_HOLD" cmd="menu left" />
44     <binding key="AR_NEXT_HOLD" cmd="menu right" />
45 </keybindings>
47 <txt name="man" file="manpage.txt"/>
49 <filesel name="open_file"/>
50 <filesel name="open_list" file-action="loadlist '%p'" auto-close="yes"
51          title="Open a playlist: %p"
52          filter="/etc/mplayer/extensions_filter"
53          actions="d:run 'mp_loader \'%p\' d',c:run 'mp_loader \'%p\' c'" />
55 <pt name="jump_to"/>
57 <console name="console0" height="80" vspace="0">Welcome to MPlayer</console>
59 <txt name="man" file="manpage.txt"/>
61 <pref name="general_pref" title="General">
62       <e property="osdlevel" name="OSD level"/>
63       <e property="speed" name="Speed"/>
64       <e property="loop" name="Loop"/>
65 </pref>
67 <pref name="demuxer_pref" title="Demuxer">
68 </pref>
71 <pref name="osd_sub_pref" title="Subtitles">
72       <e property="sub" name="Subtitles"/>
73       <e property="sub_visibility" name="Visibility"/>
74       <e property="sub_forced_only" name="Forced sub only"/>
75       <e property="sub_alignment" name="Alignment"/>   
76       <e property="sub_pos" name="Position"/>
77       <e property="sub_delay" name="Delay"/>
78       <e property="sub_scale" name="Scale"/>
79 </pref>
81 <pref name="audio_pref" title="Audio">
82       <e property="volume" name="Volume"/>
83       <e property="balance" name="Balance"/>
84       <e property="mute" name="Mute"/>
85       <e property="audio_delay" name="Delay"/>
86 </pref>
88 <pref name="colors_pref" title="Colors">
89       <e property="gamma" name="Gamma"/>
90       <e property="brightness" name="Brightness"/>
91       <e property="contrast" name="Contrast"/>
92       <e property="saturation" name="Saturation"/>
93       <e property="hue" name="Hue"/>
94 </pref>
96 <pref name="video_pref" title="Video">
97       <e property="fullscreen" name="Fullscreen"/>
98       <e property="panscan" name="Panscan"/>
99       <menu menu="colors_pref" name="Colors ..."/>
100       <e property="ontop" name="Always on top"/>
101       <e property="rootwin" name="Root window"/>
102       <e property="framedropping" name="Frame dropping"/>
103       <e property="vsync" name="VSync"/>
104  </pref>
107 <cmdlist name="pref_main" title="Preferences" ptr="<>" >
108     <e name="General ..." ok="set_menu general_pref"/>
109     <e name="Audio ..." ok="set_menu audio_pref"/>
110     <e name="Video ..." ok="set_menu video_pref"/>
111     <e name="Subtitles ..." ok="set_menu osd_sub_pref"/>
112     <e name="Back" ok="menu cancel"/>
113 </cmdlist>
115 <pref name="properties" title="Stream Properties">
116       <e txt="${filename}" name="Name"/>
117       <e txt="${video_format}" name="Video Codec"/>
118       <e txt="${video_bitrate}" name="Video Bitrate"/>
119       <e txt="${width} x ${height}" name="Resolution"/>
120       <e txt="${audio_codec}" name="Audio Codec"/>
121       <e txt="${audio_bitrate}" name="Audio Bitrate"/>
122       <e txt="${samplerate}, ${channels}" name="Audio Samples"/>
123       <e txt="${metadata/Title}" name="Title"/>
124       <e txt="${metadata/Artist}" name="Artist"/>
125       <e txt="${metadata/Album}" name="Album"/>
126       <e txt="${metadata/Year}" name="Year"/>
127       <e txt="${metadata/Comment}" name="Comment"/>
128       <e txt="${metadata/Track}" name="Track"/>
129       <e txt="${metadata/Genre}" name="Genre"/>
130       <e txt="${metadata/Software}" name="Software"/>
131 </pref>
133 <cmdlist name="main" title="MPlayer OSD menu" ptr="<>" >
134       <e name="Pause" ok="pause"/>
135       <e name="Prev/Next" ok="pt_step 1" cancel="pt_step -1"/>
136       <e name="Jump to ..." ok="set_menu jump_to"/>
137       <e name="Open ..." ok="set_menu open_file"/>
138       <e name="Open playlist ..." ok="set_menu open_list"/>
139       <e name="Help" ok="set_menu man"/>
140       <e name="Pref" ok="set_menu pref_main"/>
141       <e name="Properties" ok="set_menu properties"/>
142       <e name="Console" ok="set_menu console0"/>
143       <e name="Quit" ok="quit"/>
144 </cmdlist>