Installscript-keymacros.conf

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
K
 
(13 dazwischenliegende Versionen von 9 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
 +
==Beschreibung==
 +
Installiert(entpackt) man zbs das [[epgsearch-plugin]] ueber den Plugins-Manager, so wird in der [[keymacros.conf]], die Zeile:
 +
 +
Green    Schedule
 +
 +
durch:
 +
 +
Green    @epgsearch
 +
 +
ersetzt, das selbe Rückwärts, sprich bei einer "deinstallation" wird der Eintrag wieder hergestellt.
 +
 +
[epgsearch]
 +
's:^\(Green    \).*:\1@epgsearch:'
 +
's:^\(Green    \).*:\1Schedule:'
 +
 +
Sollte in '''/var/log/vdr/plugins.log''' wie folgt aussehen:
 +
 +
------------------------------------------------------------------------
 +
- epgsearch-0.9.4 Mon Jun 27 14:31:42 2005
 +
------------------------------------------------------------------------
 +
+++ cmd : create symbolic link `epgsearch' to `epgsearch-0.9.4'
 +
+++ msg : command(s) in keymacros.conf found...
 +
+++ cmd : sed -i 's:^\(Green    \).*:\1@epgsearch:' ../keymacros.conf
 +
          [...]
 +
------------------------------------------------------------------------
 +
 +
Oder über das [[admin-plugin]].
 +
 +
[[Bild:installscript-keymacros.jpg|thumb|none|''kurze beschreibung'']]
 +
 +
 +
''Bzw, auf der Kommandozeile.''
 +
 +
shell> [[Installscript-dialog.sh|$PREFIX/etc/vdr/admin/dialog.sh]]
 +
 +
==keymacros.conf==
 +
{{Box Datei|../setup/config/keymacros.conf|
 
<pre>
 
<pre>
 
# Description: commands for the keymacros.conf (See man vdr(5))
 
# Description: commands for the keymacros.conf (See man vdr(5))
 
#
 
#
# Format: <plugin>:<->:<cmd(s)>
+
# Format: ^[plugin]
#                  ^
+
# in
#                   > in
+
# out
#                   < out
+
  
epgsearch:>:sed -i 's:^Green    Schedule$:Green    @epgsearch:' "${DISDIR}/keymacros.conf"
+
[epgsearch]
epgsearch:<:sed -i 's:^Green    @epgsearch$:Green    Schedule:' "${DISDIR}/keymacros.conf"
+
's:^\(Green    \).*:\1@epgsearch:'
 +
's:^\(Green    \).*:\1Schedule:'
  
pilot:>:sed -i 's:^Red      Recordings$:Red      @pilot:' "${DISDIR}/keymacros.conf"
+
[pilot]
pilot:<:sed -i 's:^Red      @pilot$:Red      Recordings:' "${DISDIR}/keymacros.conf"
+
's:^\(Red      \).*:\1@pilot:'
 +
's:^\(Red      \).*:\1Recordings:'
  
prefermenu:>:sed -i 's:^Yellow    Setup$:Yellow    @prefermenu:' "${DISDIR}/keymacros.conf"
+
[prefermenu]
prefermenu:<:sed -i 's:^Yellow    @prefermenu$:Yellow    Setup:' "${DISDIR}/keymacros.conf"
+
's:^\(Yellow    \).*:\1@prefermenu:'
 +
's:^\(Yellow    \).*:\1Info:'
  
yaepg:>:sed -i 's:^Blue      Timers$:Blue      @yaepg:' "${DISDIR}/keymacros.conf"
+
[yaepg]
yaepg:<:sed -i 's:^Blue      @yaepg$:Blue      Timers:' "${DISDIR}/keymacros.conf"
+
's:^\(Blue      \).*:\1@yaepg:'
 +
's:^\(Blue      \).*:\1Timers:'
 
</pre>
 
</pre>
 +
}}
 +
 
[[Kategorie:Installscript]]
 
[[Kategorie:Installscript]]

Aktuelle Version vom 10. April 2008, 06:38 Uhr

[Bearbeiten] Beschreibung

Installiert(entpackt) man zbs das epgsearch-plugin ueber den Plugins-Manager, so wird in der keymacros.conf, die Zeile:

Green     Schedule

durch:

Green     @epgsearch

ersetzt, das selbe Rückwärts, sprich bei einer "deinstallation" wird der Eintrag wieder hergestellt.

[epgsearch]
	's:^\(Green     \).*:\1@epgsearch:'
	's:^\(Green     \).*:\1Schedule:'

Sollte in /var/log/vdr/plugins.log wie folgt aussehen:

------------------------------------------------------------------------
- epgsearch-0.9.4 Mon Jun 27 14:31:42 2005
------------------------------------------------------------------------
+++ cmd : create symbolic link `epgsearch' to `epgsearch-0.9.4'
+++ msg : command(s) in keymacros.conf found...
+++ cmd : sed -i 	's:^\(Green     \).*:\1@epgsearch:' ../keymacros.conf
          [...]
------------------------------------------------------------------------

Oder über das admin-plugin.

kurze beschreibung


Bzw, auf der Kommandozeile.

shell> $PREFIX/etc/vdr/admin/dialog.sh

[Bearbeiten] keymacros.conf

Datei
../setup/config/keymacros.conf
# Description: commands for the keymacros.conf (See man vdr(5))
#
# Format: ^[plugin]
#			in
#			out

[epgsearch]
	's:^\(Green     \).*:\1@epgsearch:'
	's:^\(Green     \).*:\1Schedule:'

[pilot]
	's:^\(Red       \).*:\1@pilot:'
	's:^\(Red       \).*:\1Recordings:'

[prefermenu]
	's:^\(Yellow    \).*:\1@prefermenu:'
	's:^\(Yellow    \).*:\1Info:'

[yaepg]
	's:^\(Blue      \).*:\1@yaepg:'
	's:^\(Blue      \).*:\1Timers:'