Advertisement
Guest User

lircrc

a guest
Jul 2nd, 2010
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.25 KB | None | 0 0
  1. # lirc_wb667 replace start #
  2.  
  3. ########################################################
  4. # LC : NOTICE !!
  5. #      EDIT THIS FILE in linux environment to avoid bug of lirc_client.c (lirc_readconfig_internal)
  6. #      => make sure line ending is '\n' instead of '\r''\n'
  7. ########################################################
  8.  
  9. #######################
  10. ###  for MPlayer   ####
  11. #######################
  12.  
  13. # This is the config file for lirc to support mplayer.
  14. # Copy this file as ~/lircrc or /etc/lirc/lircic
  15.  
  16. begin
  17.      button = VolUp
  18.      prog = mplayer
  19.      config = volume 1
  20.      repeat = 1
  21. end
  22.  
  23. begin
  24.     button = VolDown
  25.     prog = mplayer
  26.     config = volume -1
  27.     repeat = 1
  28. end
  29.  
  30. begin
  31.      button = ChanUp
  32.      prog = mplayer
  33.      config = tv_step_channel 1
  34.      repeat = 1
  35. end
  36.  
  37. begin
  38.     button = ChanDown
  39.     prog = mplayer
  40.     config = tv_step_channel -1
  41.     repeat = 1
  42. end
  43.  
  44. begin
  45.     button = OK
  46.     prog = mplayer
  47.     config = pause
  48. end
  49.  
  50. begin
  51.     button = Play
  52.     prog = mplayer
  53.     config = pause
  54. end
  55.  
  56. begin
  57.     button = Pause
  58.     prog = mplayer
  59.     config = pause
  60. end
  61.  
  62. begin
  63.     button = Stop
  64.     prog = mplayer
  65.     config = seek 0 1\npause
  66. end
  67.  
  68. begin
  69.     button = Mute
  70.     prog = mplayer
  71.     config = mute
  72. end
  73.  
  74. begin
  75.     button = Right
  76.     prog = mplayer
  77.     config = seek +10
  78.     repeat = 1
  79. end
  80.  
  81. begin
  82.     button = Left
  83.     prog = mplayer
  84.     config = seek -10
  85.     repeat = 1
  86. end
  87.  
  88. begin
  89.     button = Down
  90.     prog = mplayer
  91.     config = seek -60
  92.     repeat = 1
  93. end
  94.  
  95. begin
  96.     button = Up
  97.     prog = mplayer
  98.     config = seek +60
  99.     repeat = 1
  100. end
  101.  
  102. begin
  103.     button = Back
  104.     prog = mplayer
  105.     config = seek -600
  106.     repeat = 1
  107. end
  108.  
  109. begin
  110.     button = Rewind
  111.     prog = mplayer
  112.     config = seek -600
  113.     repeat = 1
  114. end
  115.  
  116. begin
  117.     button = Forward
  118.     prog = mplayer
  119.     config = seek +600
  120.     repeat = 1
  121. end
  122.    
  123.  
  124.  
  125.  
  126. #######################
  127. ### for Rhythmbox  ####
  128. #######################
  129.  
  130.     # to see debug info of Rhythmbox : exec "rhythmbox -d 2>&1 | grep lirc"
  131.     #
  132.     # the following section are copied from rb-lirc-plugin.c found on web.
  133.     #
  134.         #define RB_IR_COMMAND_PLAY "play"
  135.         #define RB_IR_COMMAND_PAUSE "pause"
  136.         #define RB_IR_COMMAND_PLAYPAUSE "playpause"
  137.         #define RB_IR_COMMAND_STOP "stop"
  138.         #define RB_IR_COMMAND_SHUFFLE "shuffle"
  139.         #define RB_IR_COMMAND_REPEAT "repeat"
  140.         #define RB_IR_COMMAND_NEXT "next"
  141.         #define RB_IR_COMMAND_PREVIOUS "previous"
  142.         #define RB_IR_COMMAND_SEEK_FORWARD "seek_forward"
  143.         #define RB_IR_COMMAND_SEEK_BACKWARD "seek_backward"
  144.         #define RB_IR_COMMAND_VOLUME_UP "volume_up"     => LC : nothing happens ??
  145.         #define RB_IR_COMMAND_VOLUME_DOWN "volume_down" => LC : nothing happens ??
  146.         #define RB_IR_COMMAND_MUTE "mute"
  147.  
  148.     begin
  149.         prog = Rhythmbox
  150.         button = Play
  151.         config = play
  152.     end
  153.     begin
  154.         prog = Rhythmbox
  155.         button = Pause
  156.         config = pause
  157.     end
  158.     begin
  159.         prog = Rhythmbox
  160.         button = Stop
  161.         config = stop
  162.     end
  163.     begin
  164.         prog = Rhythmbox
  165.         button = Forward
  166.         config = seek_forward
  167.     end
  168.     begin
  169.         prog = Rhythmbox
  170.         button = Rewind
  171.         config = seek_backward
  172.     end
  173.     begin
  174.         prog = Rhythmbox
  175.         button = Skip
  176.         config = next
  177.     end
  178.     begin
  179.         prog = Rhythmbox
  180.         button = Replay
  181.         config = previous
  182.     end
  183.     begin
  184.         prog = Rhythmbox
  185.         button = VolUp
  186.         config = volume_up
  187.     end
  188.     begin
  189.         prog = Rhythmbox
  190.         button = VolDown
  191.         config = volume-down
  192.     end
  193.  
  194. #######################
  195. ### for Totem  ####
  196. #######################
  197.  
  198.     # the following section are copied from totem-lirc.c found on web.
  199.     #
  200.         #define TOTEM_IR_COMMAND_PLAY "play"
  201.         #define TOTEM_IR_COMMAND_PAUSE "pause"
  202.         #define TOTEM_IR_COMMAND_NEXT "next"
  203.         #define TOTEM_IR_COMMAND_PREVIOUS "previous"
  204.         #define TOTEM_IR_COMMAND_SEEK_FORWARD "seek_forward"
  205.         #define TOTEM_IR_COMMAND_SEEK_BACKWARD "seek_backward"
  206.         #define TOTEM_IR_COMMAND_VOLUME_UP "volume_up"
  207.         #define TOTEM_IR_COMMAND_VOLUME_DOWN "volume_down"
  208.         #define TOTEM_IR_COMMAND_FULLSCREEN "fullscreen"
  209.         #define TOTEM_IR_COMMAND_QUIT "quit"
  210.         #define TOTEM_IR_COMMAND_UP "up"
  211.         #define TOTEM_IR_COMMAND_DOWN "down"
  212.         #define TOTEM_IR_COMMAND_LEFT "left"
  213.         #define TOTEM_IR_COMMAND_RIGHT "right"
  214.         #define TOTEM_IR_COMMAND_SELECT "select"
  215.         #define TOTEM_IR_COMMAND_MENU "menu"
  216.         #define TOTEM_IR_COMMAND_PLAYPAUSE "play_pause"
  217.         #define TOTEM_IR_COMMAND_ZOOM_UP "zoom_up"
  218.         #define TOTEM_IR_COMMAND_ZOOM_DOWN "zoom_down"
  219.         #define TOTEM_IR_COMMAND_SHOW_PLAYING "show_playing"
  220.         #define TOTEM_IR_COMMAND_SHOW_VOLUME "show_volume"
  221.         #define TOTEM_IR_COMMAND_EJECT "eject"
  222.         #define TOTEM_IR_COMMAND_PLAY_DVD "play_dvd"
  223.         #define TOTEM_IR_COMMAND_MUTE "mute"
  224.  
  225.     begin
  226.         prog = Totem
  227.         button = Play
  228.         config = play
  229.     end
  230.     begin
  231.         prog = Totem
  232.         button = Pause
  233.         config = pause
  234.     end
  235.     begin
  236.         prog = Totem
  237.         button = Stop
  238.         config = stop
  239.     end
  240.     begin
  241.         prog = Totem
  242.         button = Forward
  243.         config = seek_forward
  244.     end
  245.     begin
  246.         prog = Totem
  247.         button = Rewind
  248.         config = seek_backward
  249.     end
  250.     begin
  251.         prog = Totem
  252.         button = Skip
  253.         config = next
  254.     end
  255.     begin
  256.         prog = Totem
  257.         button = Replay
  258.         config = previous
  259.     end
  260.     begin
  261.         prog = Totem
  262.         button = VolUp
  263.         config = volume_up
  264.     end
  265.     begin
  266.         prog = Totem
  267.         button = VolDown
  268.         config = volume-down
  269.     end
  270.  
  271. # lirc_wb667 replace end #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement