From: Mischa POSLAWSKY Date: Wed, 29 Jul 2009 16:20:40 +0000 (+0000) Subject: mplayer: preliminary keyboard page of default bindings X-Git-Tag: v1.3~107 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/5ff4b1c1b790314cd654d32ca6d72368d1748283 mplayer: preliminary keyboard page of default bindings MPlayer v1.0rc3 keys according to manpage. --- diff --git a/mplayer.inc.pl b/mplayer.inc.pl new file mode 100644 index 0000000..66bd78d --- /dev/null +++ b/mplayer.inc.pl @@ -0,0 +1,48 @@ +use utf8; + +'' => { + desc => "interactive control", + + 'p' => ["pause", 'co'], + '.' => ["step forward", 'co'], + 'q' => ["stop and quit"], + '+' => ["audio delay +$sign{_}.1s"], + '-' => ["audio delay -$sign{_}.1s"], + '/' => ["volume decrease"], + '*' => ["volume increase"], + '9' => '/', + '0' => '*', + 'm' => ["mute sound"], + '#' => ["cycle audio tr$sign{_}ack$sign{_}s"], + 'f' => ["full$sign{_}screen"], + 'T' => ["stay on top"], + 'w' => ["pan/sc. decr$sign{_}eas$sign{_}e"], + 'e' => ["pan/scan increase"], + 'o' => ["osd state switch"], + 'd' => ["frame drop mode"], + 'v' => ["subtitle visibility"], + 'b' => ["next sub$sign{_}title"], + 'j' => ["prev$sign{_}ious sub$sign{_}title"], + 'y' => ["forward in subtitle list"], #TODO + 'g' => 'y', #TODO + 'F' => ["forced subtitles"], + 'a' => ["align subtitles"], + 'x' => ["subtitle delay +$sign{_}.1s"], + 'z' => ["subtitle delay -$sign{_}.1s"], + 'r' => ["subtitles up"], + 't' => ["subtitles down"], + 's' => ["screen$sign{_}shot", 'opt', "-vf screenshot"], + 'S' => ["record screen$sign{_}shot$sign{_}s", 'opt', "-vf screenshot"], + 'I' => ["filename"], + '!' => ["chapter back"], + '@' => ["chapter forward"], + '1' => ["contrast less", 'opt'], + '2' => ["contrast more", 'opt'], + '3' => ["brighter", 'opt'], + '4' => ["darker", 'opt'], + '5' => ["hue to red", 'opt'], + '6' => ["hue to blue", 'opt'], + '7' => ["saturate", 'opt'], + '8' => ["de$sign{_}saturate", 'opt'], +}, + diff --git a/mplayer.plp b/mplayer.plp new file mode 100644 index 0000000..73e79fb --- /dev/null +++ b/mplayer.plp @@ -0,0 +1,113 @@ +<: +use utf8; +use strict; +use warnings; +no warnings 'qw'; # you know what you doing +no warnings 'uninitialized'; # save some useless checks for more legible code + +use Shiar_Sheet::KeySigns qw(%sign); + +our $VERSION = 'v1.0'; + +$header{content_type} = "text/html; charset=$sign{charset}"; + +:> + + + +mplayer cheat sheet + + + +<: + my %styles = map {$_ => $_} qw(dark circus mono red terse); + our $style = exists $get{style} && $styles{$get{style}} || 'light'; + printf(qq{\n}, + $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "$_.css", $_ + ) for keys %styles; + + our $showkeys = exists $get{keys} && $get{keys} ne '0'; + print "\n".'' unless $showkeys; + print "\n".'' + if $showkeys and $get{keys} eq 'ghost'; +:> + + + + +

MPlayer cheat sheet

+ +

index (default)

+ + + +
+ +
+
+
+
aside +
Temporarily display something without changing state. +
select +
Scroll list and/or select a different line. +
search +
Go to a specific message entry. +
edit +
Modify message flags or contents. +
command +
Any other action which does not alter an existing message. +
send +
Prepare and/or send a (new) message. +
leave +
Exit the opened folder. +
display +
Permanently alter/toggle current view. +
+
+ +
+
+
key<:= $sign{arg} :> +
Commands with a dot need an argument afterwards. +
+ +
    +
  • keyboard map is + <:= $get{map} ? 'set to ' : '' :><:= $keys->{map} :> +
  • ascii mode is + <:= defined $sign{-ascii} && 'forced ' :><:= + $sign{-ascii} ? 'on' : 'off' :> +
  • keys are + <:= $showkeys ? 'always shown' : 'hidden if unassigned' :><:= + !exists $get{keys} && ' by default' :> +
  • default style is + <:= defined $get{style} && 'set to ' :><:= $style :> +
+
+
+ + + +