Selon les tags présents sur cette page, celle-ci n'a pas été vérifiée pour une des versions LTS supportées d'Ubuntu.
Apportez votre aide…
Apportez votre aide…
Ceci est une ancienne révision du document !
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:
# 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
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.
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
VLC
## 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
Totem
## Totem ## begin totem begin prog = Totem button = power config = quit end begin prog = Totem button = play config = play end begin prog = Totem button = pause repeat = 0 config = pause end begin prog = Totem button = stop config = pause repeat = 0 end begin prog = Totem button = chan-up config = next repeat = 1 end begin prog = Totem button = chan-down config = seek_previous repeat = 1 end begin prog = Totem button = forward config = seek_forward repeat = 1 end begin prog = Totem button = rewind config = seek_backward repeat = 1 end begin prog = Totem button = vol-up config = volume_up repeat = 1 end begin prog = Totem button = vol-down config = volume_down repeat = 1 end begin prog = Totem button = max-window config = fullscreen repeat = 1 end end totem
Tvtime
## TVTIME ## begin prog = irexec button = POWER config = tvtime-command QUIT end begin prog = irexec button = E config = tvtime-command TOGGLE_INPUT end begin prog = irexec button = launch_setup config = tvtime-command DISPLAY_INFO end begin prog = irexec button = MAXIMIZE config = tvtime-command TOGGLE_FULLSCREEN end begin prog = irexec button = MUTE config = tvtime-command TOGGLE_MUTE end begin prog = irexec button = UP config = tvtime-command UP end begin prog = irexec button = DOWN config = tvtime-command DOWN end begin prog = irexec button = RIGHT config = tvtime-command RIGHT end begin prog = irexec button = LEFT config = tvtime-command LEFT end begin prog = irexec button = vol-up config = tvtime-command MIXER_UP repeat = 1 end begin prog = irexec button = vol-down config = tvtime-command MIXER_DOWN repeat = 1 end begin prog = irexec button = chan-up config = tvtime-command CHANNEL_UP end begin prog = irexec button = chan-down config = tvtime-command CHANNEL_DOWN end begin prog = irexec button = dvd-root_menu config = tvtime-command CHANNEL_JUMP end begin prog = irexec button = 1 config = tvtime-command CHANNEL_1 end begin prog = irexec button = 2 config = tvtime-command CHANNEL_2 end begin prog = irexec button = 3 config = tvtime-command CHANNEL_3 end begin prog = irexec button = 4 config = tvtime-command CHANNEL_4 end begin prog = irexec button = 5 config = tvtime-command CHANNEL_5 end begin prog = irexec button = 6 config = tvtime-command CHANNEL_6 end begin prog = irexec button = 7 config = tvtime-command CHANNEL_7 end begin prog = irexec button = 8 config = tvtime-command CHANNEL_8 end begin prog = irexec button = 9 config = tvtime-command CHANNEL_9 end begin prog = irexec button = 0 config = tvtime-command CHANNEL_0 end begin prog = irexec button = OK config = tvtime-command ENTER end
Kaffeine
## KAFFEINE ## begin prog = irexec button = play config = dcop kaffeine KaffeineIface playDvb end begin prog = irexec button = pause config = dcop kaffeine KaffeineIface pause end begin prog = irexec button = ok config = dcop kaffeine KaffeineIface dvbOSD end begin prog = irexec button = stop config = dcop kaffeine KaffeineIface stop end begin prog = irexec button = forward config = dcop kaffeine KaffeineIface posPlus end begin prog = irexec button = rewind config = dcop kaffeine KaffeineIface posMinus end begin prog = irexec button = chan-up config = dcop kaffeine KaffeineIface next end begin prog = irexec button = chan-down config = dcop kaffeine KaffeineIface previous end begin prog = irexec button = power config = dcop kaffeine KaffeineIface quit end begin prog = irexec button = vol-up config = dcop kaffeine KaffeineIface volUp end begin prog = irexec button = mute config = dcop kaffeine KaffeineIface mute end begin prog = irexec button = vol-down config = dcop kaffeine KaffeineIface volDown end begin prog = irexec button = max_window config = dcop kaffeine KaffeineIface fullscreen end begin prog = irexec button = up config = dcop kaffeine KaffeineIface zoomIn end begin prog = irexec button = down config = dcop kaffeine KaffeineIface zoomOut end begin prog = irexec button = 1 config = dcop kaffeine KaffeineIface setNumber 1 repeat = 0 end begin prog = irexec button = 2 config = dcop kaffeine KaffeineIface setNumber 2 repeat = 0 end begin prog = irexec button = 3 config = dcop kaffeine KaffeineIface setNumber 3 repeat = 0 end begin prog = irexec button = 4 config = dcop kaffeine KaffeineIface setNumber 4 repeat = 0 end begin prog = irexec button = 5 config = dcop kaffeine KaffeineIface setNumber 5 repeat = 0 end begin prog = irexec button = 6 config = dcop kaffeine KaffeineIface setNumber 6 repeat = 0 end begin prog = irexec button = 7 config = dcop kaffeine KaffeineIface setNumber 7 repeat = 0 end begin prog = irexec button = 8 config = dcop kaffeine KaffeineIface setNumber 8 repeat = 0 end begin prog = irexec button = 9 config = dcop kaffeine KaffeineIface setNumber 9 repeat = 0 end begin prog = irexec button = 0 config = dcop kaffeine KaffeineIface setNumber 0 repeat = 0 end
Mplayer
# Mplayer begin button = vol-up prog = mplayer config = volume 10 repeat = 5 end begin button = vol-down prog = mplayer config = volume -10 repeat = 5 end begin button = mute prog = mplayer config = mute end begin button = pause prog = mplayer config = pause end begin button = play prog = mplayer config = pause end begin button = stop prog = mplayer config = seek 0 1\npause end begin button = power prog = mplayer config = quit end begin button = max_window prog = mplayer config = vo_fullscreen end begin button = record prog = mplayer config = osd end begin button = forward prog = mplayer config = seek 5 end begin button = rewind prog = mplayer config = seek -5 end begin button = right prog = mplayer config = seek 60 end begin button = left prog = mplayer config = seek -60 end begin button = up prog = mplayer config = seek 600 end begin button = down prog = mplayer config = seek -600 end begin button = chan-up prog = mplayer config = pt_step 1 end begin button = chan-down prog = mplayer config = pt_step -1 end