summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-templates/templates/remotes/other/imon/lircrc
blob: f16bfc3b6847f2b7b49f0d42b81dececcd41cc67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
# /home/mythtv/.mythtv/lircrc
#
# Media Center Edition Remote Control and Remote Control Keys on Media Center Keyboard
########################################################################################
# For use with the USB MCE ir receiver
# MythTV LIRC config file for the mceusb2 or lirc_mod_mce module

# Info about lircrc statment
#begin
#       prog    = ...     Program controlled, irxevent, irexec, mythtv, mplayer, xine, or others
#       remote  = ...     mceusb, or what ever you happen to have or want to call it
#       button  = ...      remote keys names from your lircd.conf file
#       repeat  = ...     repeat = 2 is fast, repeat = 4 is slower
#       delay   = ...     delay before repeat, 1 is short, 4 is longer
#       config  = ...     output key presses to key bindings editor
#       mode    = ...
#       flags   = ...
#end


# Updated January 30th 2008 BAK
# for the Knoppmyth project

######################################################## irexec ####################
# the lirc irexec program must be running for this section

# Will perform a complete shutdown
#begin
#       prog = irexec
#       button = Power
#       config =  /usr/bin/sudo halt
#end

# Teletext = used as power down button
begin
       prog = irexec
       button = KEY_SUBTITLE
       config =  /usr/bin/sudo halt
#       config = sudo /sbin/shutdown -h -t 0 now
end


#
################################################ Mythtv Section ####################
# MythTV Key Binding Editor     location
# Mythtv Menu >>Utilities / Setup >>Edit Keys
# Key Bindings can also be found in Myth Web

# Record
begin
       prog = mythtv
       button = KEY_RECORD
       config = R
end

# Stop
begin
       prog = mythtv
       button = KEY_STOP
       config = Esc
end

# Pause
begin
       prog = mythtv
       button = KEY_PAUSE
       config = P
end

# Rewind (while viewing)
begin
       prog = mythtv
       button = KEY_REWIND
       repeat = 0
       delay   = 1
       config = <
end

# Fast forward (while viewing)
begin
       prog = mythtv
       button = KEY_FASTFORWARD
       repeat = 0
       delay   = 1
       config = >
end

# Play
begin
       prog = mythtv
       button = KEY_PLAY
       config = L
end

# Skip backward (1 min default)
begin
       prog = mythtv
       button = KEY_PREVIOUS
       repeat = 4
       delay   = 4
       config = PgUp
end

# Skip forward (1 min default)
begin
       prog = mythtv
       button = KEY_NEXT
       repeat = 4
       delay   = 4
       config = PgDown
end

#<><><><><><><><><><><> Mythtv Control <><><><>

# Escape/Exit/Back
begin
       prog = mythtv
       button = KEY_EXIT
       config = Esc
end

# Bring up OSD info
begin
       prog = mythtv
       button = KEY_INFO
       config = I
end

begin
       prog = mythtv
       button = KEY_LEFT
       repeat = 3
       delay   = 4
       config = Left
end

begin
       prog = mythtv
       button = KEY_RIGHT
       repeat = 3
       delay   = 4
       config = Right
end

begin
       prog = mythtv
       button = KEY_UP
       repeat = 3
       delay   = 4
       config = Up
end

begin
       prog = mythtv
       button = KEY_DOWN
       repeat = 3
       delay   = 4
       config = Down
end

# OK/Select
begin
       prog = mythtv
       button = KEY_OK
       config = Return
end

# The Start Button is really just a Menu key
begin
       prog = mythtv
       button = KEY_MEDIA
       config = M
end

#<><><><><><><><><><><><><><><>

# Volume-Up
begin
       prog = mythtv
       button = KEY_VOLUMEUP
       repeat = 2
       config = ]
end

# Volume-Down
begin
       prog = mythtv
       button = VOLUMEDOWN
       repeat = 2
       config = [
end

# Mute
begin
       prog = mythtv
       button = KEY_MUTE
       config = |
end

# Channel Up
begin
       prog = mythtv
       button = KEY_CHANNELUP
       repeat = 3
#       delay   = 1
       config = Up
end

# Channel Down
begin
       prog = mythtv
       button = CHANNELDOWN
       config = Down
       repeat = 3
#       delay   = 1
end

# Numbers 0-9 <><><><><><><><><><><>

begin
       prog = mythtv
       button = KEY_1
#       repeat = 2
       config = 1
end

begin
       prog = mythtv
       button = KEY_2
#       repeat = 2
       config = 2
end

begin
       prog = mythtv
       button = KEY_3
#       repeat = 2
       config = 3
end

begin
       prog = mythtv
       button = KEY_4
#       repeat = 2
       config = 4
end

begin
       prog = mythtv
       button = KEY_5
#       repeat = 2
       config = 5
end

begin
       prog = mythtv
       button = KEY_6
#       repeat = 2
       config = 6
end

begin
       prog = mythtv
       button = KEY_7
#       repeat = 2
       config = 7
end

begin
       prog = mythtv
       button = KEY_8
#       repeat = 2
       config = 8
End

begin
       prog = mythtv
       button = KEY_9
#       repeat = 2
       config = 9
end

begin
       prog = mythtv
       button = KEY_0
#       repeat = 2
       config = 0
end

# Use Zoom for Aspect Ratio
begin
       prog = mythtv
       button = KEY_ZOOM
       config = W
end

#<><><><><><><><><><><><><><><><><><><><>
# Seek to previous commercial cut point
# or remove all cut points from the Editing Cutlist
begin
       prog = mythtv
       button = KEY_BLUE
       config = Q
end

# Seek to next commercial cut point
# or add commericial cut points to the Editing Cutlist
begin
       prog = mythtv
       button = KEY_NUMERIC_POUND
       config = Z
end

# Brings up the delete box
begin
       prog = mythtv
       button = KEY_DELETE
       repeat = 0
       config = D
end

# Toggle Editing Cutlist on or off
begin
       prog = mythtv
       button = KEY_ENTER
       repeat = 0
       config = E
end

#<><><><><><><><> Additional Remote Commands <><><><><><><><>
# All buttons in this section must be configured using
# MythTV's KeyBindings JumpPoints editor.
# >>> Utilities/ Setup >>> Edit Keys >>> JumpPoints >>>

# Listen to Myth Music
begin
       prog = mythtv
       button = KEY_AUDIO
       config = Ctrl+T
end

# at this time connects to MythStreem
begin
       prog = mythtv
       button = KEY_RADIO
       config = Ctrl+Alt+S
end

# View Pictures
begin
       prog = mythtv
       button = KEY_CAMERA
       config = Ctrl+G
end

# Watch Videos
begin
       prog = mythtv
       button = KEY_VIDEO
       config = Ctrl+V
end

# Watch Live TV with Live TV Guide open
begin
       prog = mythtv
       button = KEY_TV
       config = Ctrl+S
end

# Watch Live TV
begin
       prog = mythtv
       button = KEY_GREEN
       config = Ctrl+Alt+L
end

# Recorded TV Programs
begin
       prog = mythtv
       button = KEY_PVR
       config = Ctrl+R
end

# Program Guide
begin
       prog = mythtv
       button = KEY_EPG
       config = Ctrl+Alt+G
end

# Play DVD
# There must be a disk in the DVD drive or it dos nothing
begin
       prog = mythtv
       button = KEY_DVD
       config = Ctrl+Alt+D
end

# unused key
#begin
#       prog = mythtv
#       button = Messenger
#       config = Ctrl+Alt+A
#end

# <><><><><><><><><><><><><> Teletext Buttons <><><><><><><><><><><>

# Teletext = Show interactive MHEG screens
#begin
#       prog = mythtv
#       button = Teltext
#       config = F7
#end

# Red = Red button for interactive screens.
begin
       prog = mythtv
       button = KEY_RED
       config = F2
end

# Green = Green button for interactive screens.
begin
       prog = mythtv
       button = KEY_GREEN
       config = F3
end

# Yellow = Yellow button for interactive screens.
begin
       prog = mythtv
       button = KEY_YELLOW
       config = F4
end

# Blue = Blue button for interactive screens.
begin
       prog = mythtv
       button = KEY_BLUE
       config = F5
end
#
#
######################################################################### MPlayer Section #####
# "mplayer -input keylist" Prints all keys that can be bound to commands.
# "mplayer -input cmdlist" Prints all commands that can be bound to keys
# "man mplayer" Prints documentation for MPlayer

# Show OSD
begin
       prog = mplayer
       button = KEY_OK
       config = osd
end

# Pause playback
begin
       prog = mplayer
       button = KEY_PAUSE
       config = pause
end

# If paused, resume playing
begin
       prog = mplayer
       button = KEY_PLAY
       config = pause
end

# Stop playback and exit
begin
       prog = mplayer
       button = KEY_STOP
       config = q
end

# Exit playback
begin
       prog = mplayer
       button = KEY_EXIT
       config = q
end

# Subtitle 
begin
       prog = mplayer
       button = KEY_TITLE
       config = sub_visibility
end

# Subtitle language 
begin
       prog = mplayer
#       button = Language
       button = KEY_BLUE
       config = vobsub_lang
end

# Audio language 
begin
       prog = mplayer
       button = KEY_LANGUAGE
       config = switch_audio
end

# Volume-Up
begin
       prog = mplayer
       button = KEY_VOLUMEUP
       repeat = 2
       config = volume +1
end

# Volume-Down
begin
       prog = mplayer
       button = KEY_VOLUMEDOWN
       repeat = 2
       config = volume -1
end

# Mute
begin
       prog = mplayer
       button = KEY_MUTE
       config = mute
end

# Seek back 60 seconds
begin
       prog = mplayer
       button = KEY_LEFT
       repeat = 2
       config = seek -60
end

# Seek forward 60 seconds
begin
       prog = mplayer
       button = KEY_RIGHT
       repeat = 2
       config = seek +60
end

# Seek back 10 seconds
begin
       prog = mplayer
       button = KEY_REWIND
       repeat = 2
       config = seek -10
end

# Seek forward 30 seconds
begin
       prog = mplayer
       button = KEY_FASTFORWARD
       repeat = 2
       config = seek +30
end

# Quit
begin
       prog = mplayer
       button = KEY_EXIT
       config = quit
end

# Seek forward 10 minutes
begin
       prog = mplayer
       button = KEY_NEXT
       repeat = 2
       config = seek +600
end

# Seek backward 10 minutes
begin
       prog = mplayer
       button = KEY_PREVIOUS
       repeat = 2
       config = seek -600
end

# increase brightness
begin
       button = KEY_CHANNELUP
       prog   = mplayer
       repeat = 2
       config = brightness +1
end

# decrease brightness
begin
       button = KEY_CHANNELDOWN
       prog   = mplayer
       repeat = 2
       config = brightness -1
end

# Toggle full-screen
#begin
#       prog = mplayer
#       button = #???????????????????????????
#       repeat = 2
#       config = vo_fullscreen
#end


######################################################################## XINE Section ##########

# For a compleate list of Xine's Lirc Keybindings use comand
#        xine --keymap=lirc>.lircrc.xine.keybindings
# This creates a file in current directory called ".lircrc.xine.keybindings"
# Note: Xine has diferent sets of keybindings for lirc and keyboard

##  01/14/2008
# xine key bindings.
# Automatically generated by xine-ui version 0.99.6cvs.

#<><><><><><><><><><> Xine Video Movement <><><><>

# start playback
begin
  prog   = xine
  button = KEY_PLAY
  config = Play
end

# playback pause toggle
begin
  prog   = xine
  button = KEY_PAUSE
  config = Pause
end

# stop playback
begin
  prog   = xine
  button = KEY_STOP
  config = Stop
end

# take a snapshot
#begin
#   prog   = xine
#   button = Record
#   repeat = 2
#   config = Snapshot
#end

begin
       prog   = xine
       button = KEY_FASTFORWARD
       repeat = 2
#       delay   = 1
       config = SeekRelative+7
end

begin
       prog   = xine
       button = KEY_REWIND
       repeat = 2
#       delay   = 1
       config = SeekRelative-7
end

# set position to -60 seconds in current stream
begin
       prog   = xine
       button = KEY_PREVIOUS
       repeat = 2
       delay   = 1
       config = SeekRelative-60
end

# set position to +60 seconds in current stream
begin
       prog   = xine
       button = KEY_NEXT
       repeat = 2
       delay   = 1
       config = SeekRelative+60
end
#<><><><><><><><><><><><>Xine Control<><><><><><><><><>

# quit the program
begin
  prog   = xine
  button = KEY_EXIT
  config = Quit
end

#display stream information using OSD
begin
  prog   = xine
  button = KEY_INFO
  config = OSDStreamInfos
end

# menu navigate up
begin
       prog   = xine
       button = KEY_UP
       repeat = 2
       delay   = 2
       config = EventUp
end

# menu navigate down
begin
       prog   = xine
       button = KEY_DOWN
       repeat = 2
       delay   = 2
       config = EventDown
end

# menu navigate left
begin
       prog   = xine
       button = KEY_LEFT
       repeat = 2
       delay   = 2
       config = EventLeft
end

# menu navigate right
begin
       prog   = xine
       button = KEY_RIGHT
       repeat = 2
       delay   = 2
       config = EventRight
end

# menu select
begin
       prog   = xine
       button = KEY_OK
       config = EventSelect
end

# jump to Root Menu
begin
       prog   = xine
       button = KEY_MEDIA
       config = Menu
end

#<><><><><><><><><><><><><><><><><><><> Xine Volume / Channel <><><><><><><><>

# increment audio volume
begin
  prog   = xine
  button = KEY_VOLUMEUP
  repeat = 1
  config = Volume+
end

# decrement audio volume
begin
  prog   = xine
  button = KEY_VOLUMEDOWN
  repeat = 1
  config = Volume-
end

# audio muting toggle
begin
  prog   = xine
  button = KEY_MUTE
  config = Mute
end

# increase brightness by 10
begin
  prog   = xine
  button = KEY_CHANNELUP
  config = BrightnessControl+
end

# decrease brightness by 10
begin
  prog   = xine
  button = KEY_CHANNELDOWN
  config = BrightnessControl-
end

#<><><><><><><><><><><><><><><><><> Xine Menu <><><><>

# unused key
#begin
#   prog   = xine
#   button = RecordedTV
#   config = ????????
#end

# visibility toggle of stream info window
begin
  prog   = xine
  button = KEY_EPG
  config = SetupShow
end

# unused key
#begin
#   prog   = xine
#   button = LiveTV
#   config = ????????
#end

# jump to Title Menu
begin
       prog   = xine
       button = KEY_DVD
       config = RootMenu
end

#<><><><><><><><><><><><><><><><><> Xine Stream Position <><><><>

# set position in current stream

begin
       prog   = xine
       button = KEY_0
       config = SetPosition0%
end

begin
  prog   = xine
  button = KEY_1
  config = SetPosition10%
end

begin
  prog   = xine
  button = KEY_2
  config = SetPosition20%
end

begin
  prog   = xine
  button = KEY_3
  config = SetPosition30%
end

begin
  prog   = xine
  button = KEY_4
  config = SetPosition40%
end

begin
  prog   = xine
  button = KEY_5
  config = SetPosition50%
end

begin
  prog   = xine
  button = KEY_6
  config = SetPosition60%
end

begin
  prog   = xine
  button = KEY_7
  config = SetPosition70%
end

begin
  prog   = xine
  button = KEY_8
  config = SetPosition80%
end

begin
  prog   = xine
  button = KEY_9
  config = SetPosition90%
end

#<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

# decrement playback speed (slow motion slowdown)
begin
       prog   = xine
       button = KEY_BLUE
       config = SpeedSlower
end

# increment playback speed (slow motion speedup)
begin
       prog   = xine
       button = KEY_NUMERIC_POUND
       config = SpeedFaster
end

# reset playback speed
begin
       prog   = xine
       button = KEY_DELETE
       config = SpeedReset
end

# unused key
#begin
#       prog   = xine
#       button = clear
#       config = ?????????
#end

# set position to -30 seconds in current stream         config = SeekRelative-30
# set position to +30 seconds in current stream         config = SeekRelative+30
# eject the current medium                                      config = Eject
# zoom in                                                       config = ZoomIn
# zoom out                                                      config = ZoomOut
# fullscreen toggle                                             config = ToggleFullscreen

##
# End of xine .
##