Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
applications:lircrc [Le 19/02/2007, 20:31]
82.66.29.13
— (Version actuelle)
Ligne 1: Ligne 1:
-====== Les fichiers de configuration de LIRC ====== 
  
- 
-===== C'est quoi ? ===== 
- 
-Les fichiers de configuration de lirc sont des fichiers cachés à la racine du profil. Le fichier principal de configuration est **.lircrc**. 
- 
-===== Principe ===== 
- 
-Le principe de ce fichier est le suivant: 
-<​code>#​ ici démarre les actions pour le logiciel TOTEM 
-begin totem 
-# ici on défini la première action : 
- begin 
-                #Le programme concerné ici TOTEM 
- prog ​  = Totem 
-                #Le bouton de la télécommande concerné par cette action ​ 
-                #Il peut être modifié en fonction du modèle de télécommande 
-                #Pour tester le nom affecté à chaque touche de la télécommande 
-                #utilisez la commande irw 
- button = power 
-                #​L'​action qui va être déclanché lors de l'​appui sur le bouton 
- config = quit 
- end 
-# ici on défini la deuxième action : 
- begin 
- prog ​  = Totem 
- button = max-window 
- config = fullscreen 
-                #​L'​action sera répété qu'une seule fois 
- repeat = 1 
- end 
-# ici termine les actions pour le logiciel TOTEM 
-end totem 
-</​code>​ 
- 
- 
- 
-===== Exemples ===== 
- 
-Voici quelques exemple pour la télécommande ATI REMOTE WONDER. 
- 
- 
- 
- 
-==== Le fichier principal ==== 
- 
-Pour éviter d'​allourdir les fichiers ils ont été scindé en plusieurs morceaux. La commande include permet d'​inserer d'​autres fichier en fonction des logiciels pris en charge. 
- 
-<​code>​ 
-begin 
- prog   = irexec 
- button = tv 
- config = if [ $(ps -eo cmd | grep -c ^tvtime$) -eq 0 ]; then (tvtime &); fi 
- mode   = tvtime & 
-end 
-begin 
- prog   = irexec 
- button = web 
- config = if [ $(ps -eo cmd | grep -c ^vlc) -eq 0 ]; then (vlc "​http://​mafreebox.freebox.fr/​freeboxtv/​playlist.m3u"​ &); fi 
- mode   = vlc & 
-end 
-begin 
- prog   = irexec 
- button = dvd 
- config = if [ $(ps -eo cmd | grep -c ^mplayer$) -eq 0 ]; then (mplayer -playlist /​media/​LACIE/​Video/​playlist.txt &); fi 
- mode   = mplayer & 
-end 
-begin 
- prog   = irexec 
- button = drag 
- config = if [ $(ps -eo cmd | grep -c ^kaffeine$) -eq 0 ]; then (kaffeine &); fi 
- mode   = kaffeine & 
-end 
- 
- 
-include ~/​.lircrc.vlc 
-include ~/​.lircrc.totem 
-include ~/​.lircrc.tvtime 
-include ~/​.lircrc.kaffeine 
-include ~/​.lircrc.mplayer 
-include ~/​.lircrc.elisa 
-</​code>​ 
- 
- 
-==== VLC ==== 
- 
-<​code>​ 
-## VLC ## 
-begin 
- prog = vlc 
- button = play 
- config = key-play 
- repeat=32 
-end 
-begin 
- prog = vlc 
- button = pause 
- config = key-play-pause 
-end 
-begin 
- prog = vlc 
- button = stop 
- config = key-stop 
-end 
-begin 
- prog = vlc 
- button = power 
- config = key-quit 
- repeat=1 
-end 
- 
-begin 
- prog = vlc 
- button = chan-up 
- config = key-next 
-end 
-begin 
- prog = vlc 
- button = chan-down 
- config = key-prev 
-end 
-begin 
- prog = vlc 
- button = max_window 
- config = key-fullscreen 
-end 
-begin 
- prog = vlc 
- button = rewind 
- config = key-slower 
-end 
-begin 
- prog = vlc 
- button = forward 
- config = key-faster 
-end 
-#Audio controls 
-begin 
- prog = vlc 
- button = vol-down 
- config = key-vol-down 
- repeat=0 
-end 
-begin 
- prog = vlc 
- button = vol-up 
- config = key-vol-up 
- repeat=0 
-end 
-begin 
- prog = vlc 
- button = mute 
- config = key-vol-mute 
-end 
- 
-#For dvd navigation 
-begin 
- prog = vlc 
- button = 4 
- config = key-nav-left 
-end 
-begin 
- prog = vlc 
- button = 8 
- config = key-nav-down 
-end 
-begin 
- prog = vlc 
- button = 2 
- config = key-nav-up 
-end 
-begin 
- prog = vlc 
- button = 6 
- config = key-nav-right 
-end 
-begin 
- prog = vlc 
- button = 5 
- config = key-nav-activate 
-end 
-begin 
- prog = vlc 
- button = source 
- config = key-disc-menu 
-end 
-</​code>​ 
- 
-==== Totem ==== 
- 
-==== Tvtime ==== 
- 
-==== Kaffeine ==== 
- 
- 
-==== Mplayer ==== 
- 
- 
-==== Elisa ==== 
  • applications/lircrc.1171913517.txt.gz
  • Dernière modification: Le 18/04/2011, 14:46
  • (modification externe)