commit 3c7aa194be0abb6525928268bb5e78f603d9de04
parent 05f195aae0506eccff95f62df88cb8f3b517c340
Author: lostd <lostd@2f30.org>
Date: Tue, 25 Nov 2014 11:12:14 +0200
Whitespace fixes
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/guides/rpi-tv.md b/guides/rpi-tv.md
@@ -24,7 +24,7 @@ First of all I added some keypresses to the CEC events, like this:
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -231,7 +231,7 @@ const std::vector<list<__u16>> & Main::setupUinputMap() {
-
+
if (uinputCecMap.empty()) {
uinputCecMap.resize(CEC_USER_CONTROL_CODE_MAX + 1, {});
- uinputCecMap[CEC_USER_CONTROL_CODE_SELECT ] = { KEY_OK };
@@ -50,7 +50,7 @@ init system.
[Unit]
Description = CEC to uinput mapper
After = remote-fs.target
-
+
[Service]
User = root
Group = root
@@ -94,7 +94,7 @@ associations, using applications and wrapper scripts:
};
struct key bindings[] = {
- { 'q', SEL_BACK},
+ { 'q', SEL_BACK },
{ KEY_ENTER, SEL_GOIN },
{ KEY_DOWN, SEL_NEXT },
{ KEY_UP, SEL_PREV },
@@ -152,19 +152,19 @@ the appropriate ownership and permissions.
`~tv/bin/omxplayer-wrapper`:
#!/bin/sh
-
+
args=
args="$args --font /usr/share/fonts/TTF/DejaVuSans-Bold.ttf"
args="$args --italic-font /usr/share/fonts/TTF/DejaVuSans-BoldOblique.ttf"
args="$args --align center"
args="$args --font-size 58"
args="$args --no-ghost-box --blank"
-
+
keyconf=~/.omxplayer/keys
test -f "$keyconf" && {
args="$args --key-config $keyconf"
}
-
+
subs="${1%.*}.srt"
test -f "$subs" && {
omxplayer $args --subtitle "$subs" "$1"