#begin # button = ok # prog = irexec # repeat = 1 # config = if [ -n "$(pidof kdm)]; then echo "date >> /usr/local 2>&1"; else echo "test2 >> /usr/local 2>&1" #end #################################### # PROGRAMM-MODI #begin irexec begin prog = irexec remote = Medion_X10 button = tv config = echo VDR läuft mode = vdr end begin prog = irexec remote = Medion_X10 button = dvd config = /usr/local/skripte/cofw.sh smplayer mode = smplayer end begin prog = irexec remote = Medion_X10 button = photo config = /usr/local/skripte/cofw.sh ACDSee mode = bilder end begin prog = irexec remote = Medion_X10 button = music config = /usr/bin/mpc play && /usr/local/skripte/cofw.sh GMPC mode = mpd end begin prog = irexec remote = Medion_X10 button = radio config = "/usr/local/skripte/cofw.sh GMPC" mode = radio end #end irexec #################################### # SONSTIGES begin prog = irexec button = power config = /usr/local/skripte/powerTasteInit.sh & repeat = 0 end begin prog = irexec button = 1 config = echo "1 gedrueckt" repeat = 1 # delay = 5 end # Lautstärke-Steuerung; FX 2007-09-16, 2009-07-17 #begin # button = vol+ # prog = irexec # repeat = 1 # config = aumix -w +1 -v +1; aumix -S # config = amixer -c 0 set PCM 3%+ #end # #begin # button = vol- # prog = irexec # repeat = 1 # config = aumix -w -2 -v -2; aumix -S #end # #begin # button = mute # prog = irexec # repeat = 0 # config = aumix -S; aumix -w 0 -v 0 # config = aumix -L #end begin prog = irexec # prog = irxevent # button = XF86AudioRaiseVolume # prog = pulseaudio button = vol+ # config = volume-up # config = /usr/local/skripte/volPlus.py config = amixer -c 0 set Master 3%+ repeat = 1 delay = 1 end begin prog = irexec # prog = irxevent # button = XF86AudioLowerVolume # prog = pulseaudio button = vol- # config = XF86AudioLowerVolume # config = volume-down # config = /usr/local/skripte/volMinus.py config = amixer -c 0 set Master 5%- repeat = 1 delay = 1 end begin prog = irexec # prog = pulseaudio button = mute config = amixer set Master toggle end #################################### # MODUS: MPD # MPD-Steuerung; FX 2007-09-16, 2009-07-14 begin mpd begin prog = irexec remote = Medion_X10 button = 1 config = echo "MODUS MPD - 1 gedrueckt" repeat = 1 # delay = 5 end begin prog = irexec button = play config = mpc play repeat = 0 end begin prog = irexec button = stop config = mpc stop repeat = 0 end begin prog = irexec button = pause config = mpc toggle repeat = 0 end begin prog = irexec button = ok config = mpc toggle repeat = 0 end begin remote = Medion_X10 prog = irexec button = forward config = aumix -S; aumix -v 0; mpc next; aumix -L repeat = 0 end begin remote = Medion_X10 prog = irexec button = up config = aumix -S; aumix -v 0; mpc next; aumix -L repeat = 0 end begin prog = irexec button = reward config = /usr/local/skripte/mpc_prev.sh repeat = 0 end begin prog = irexec button = down config = /usr/local/skripte/mpc_prev.sh repeat = 0 end begin prog = irexec button = left config = mpc seek -10% repeat = 0 end begin prog = irexec button = right config = mpc seek +10% repeat = 0 end begin prog = irexec button = ch+ config = /usr/local/skripte/mpdNextAlbum.sh next repeat = 0 end begin prog = irexec button = skipf config = /usr/local/skripte/mpdNextAlbum.sh next repeat = 0 end begin prog = irexec button = ch- config = /usr/local/skripte/mpdNextAlbum.sh prev repeat = 0 end begin prog = irexec button = skipr config = /usr/local/skripte/mpdNextAlbum.sh prev repeat = 0 end end mpd #################################### # MODUS: VDR begin vdr begin prog = VDR remote = * button = up delay = 4 repeat = 1 config = Up end begin prog = VDR remote = * button = down delay = 4 repeat = 1 config = Down end begin prog = VDR remote = * button = left delay = 4 repeat = 1 config = Left end begin prog = VDR remote = * button = right delay = 4 repeat = 1 config = Right end begin prog = VDR remote = * button = ok delay = 4 repeat = 0 config = Ok end begin prog = VDR remote = * button = red delay = 4 repeat = 0 config = Red end begin prog = VDR remote = * button = green delay = 4 repeat = 0 config = Green end begin prog = VDR remote = * button = yellow delay = 4 repeat = 0 config = Yellow end begin prog = VDR remote = * button = blue delay = 4 repeat = 0 config = Blue end begin prog = VDR remote = * button = 0 delay = 4 repeat = 0 config = 0 end begin prog = VDR remote = * button = 1 delay = 4 repeat = 0 config = 1 end begin prog = VDR remote = * button = 2 delay = 4 repeat = 0 config = 2 end begin prog = VDR remote = * button = 3 delay = 4 repeat = 0 config = 3 end begin prog = VDR remote = * button = 4 delay = 4 repeat = 0 config = 4 end begin prog = VDR remote = * button = 5 delay = 4 repeat = 0 config = 5 end begin prog = VDR remote = * button = 6 delay = 4 repeat = 0 config = 6 end begin prog = VDR remote = * button = 7 delay = 4 repeat = 0 config = 7 end begin prog = VDR remote = * button = 8 delay = 4 repeat = 0 config = 8 end begin prog = VDR remote = * button = 9 delay = 4 repeat = 0 config = 9 end begin prog = VDR remote = * button = play delay = 4 repeat = 0 config = Play end begin prog = VDR remote = * button = pause delay = 4 repeat = 0 config = Pause end begin prog = VDR remote = * button = stop delay = 4 repeat = 0 config = Stop end begin prog = VDR remote = * button = rec delay = 4 repeat = 0 config = Record end begin prog = VDR remote = * button = forward delay = 4 repeat = 0 config = FastFwd end begin prog = VDR remote = * button = reward delay = 4 repeat = 0 config = FastRew end begin prog = VDR remote = * button = skipf delay = 4 repeat = 0 config = Next end begin prog = VDR remote = * button = skipr delay = 4 repeat = 0 config = Prev end begin prog = VDR remote = * button = ren delay = 4 repeat = 0 config = Menu end begin prog = VDR remote = * button = setup delay = 4 repeat = 0 config = Schedule end begin prog = VDR remote = * button = acquire delay = 4 repeat = 0 config = Back end begin prog = VDR remote = * button = list delay = 4 repeat = 0 config = Channels end begin prog = VDR remote = * button = edit delay = 4 repeat = 0 config = Recordings end begin prog = VDR remote = * button = snapshot delay = 4 repeat = 0 config = Channels end begin prog = VDR remote = * button = desktop delay = 4 repeat = 0 config = Timers end begin prog = VDR remote = * button = delay = 4 repeat = 0 config = User1 end begin prog = VDR remote = * button = delay = 4 repeat = 0 config = User2 end begin prog = VDR remote = * button = delay = 4 repeat = 0 config = User3 end begin prog = VDR remote = * button = delay = 4 repeat = 0 config = User4 end begin prog = VDR remote = * button = review delay = 4 repeat = 0 config = @mp3 end begin prog = VDR remote = * button = ch+ delay = 4 repeat = 0 config = Channel+ end begin prog = VDR remote = * button = ch- delay = 4 repeat = 0 config = Channel- end end vdr #################################### # MODUS: BILDER # env WINEPREFIX="/home/markus/.wine" wine "C:\Programme\ACDSee\ACDSee\ACDSee.exe" begin bilder begin prog = irxevent button = txt config = Key ctrl-j CurrentWindow end begin prog = irxevent button = ch+ config = Key Page_Down CurrentWindow end begin prog = irxevent button = ch- config = Key Page_Up CurrentWindow end begin prog = irxevent button = acquire config = Key Tab CurrentWindow end begin prog = irxevent button = snapshot config = Key Page_Down CurrentWindow end begin prog = irxevent button = editimage config = Key Page_Up CurrentWindow end begin prog = irxevent button = ren config = Key BackSpace CurrentWindow end begin prog = irxevent button = del config = Key BackSpace CurrentWindow end begin prog = irxevent button = left config = Key Left CurrentWindow delay = 5 repeat = 2 end begin prog = irxevent button = right config = Key Right CurrentWindow delay = 5 repeat = 2 end begin prog = irxevent button = up config = Key Page_Down Focus WindowID 0x4200013 end begin prog = irxevent button = down config = Key Page_Up Focus WindowID 0x4200013 end begin prog = irxevent button = up config = Key Page_Down Focus WindowID 0x4a00026 end begin prog = irxevent button = down config = Key Page_Up Focus WindowID 0x4a00026 end begin prog = irxevent button = up config = Key Page_Down Focus WindowID 0x4a00033 end begin prog = irxevent button = down config = Key Page_Up Focus WindowID 0x4a00033 end begin prog = irxevent button = up config = Key Page_Down Focus WindowID 0x4a00023 end begin prog = irxevent button = down config = Key Page_Up Focus WindowID 0x4a00023 end begin prog = irxevent button = up config = Key Page_Down Focus WindowID 0x4a00053 end begin prog = irxevent button = down config = Key Page_Up Focus WindowID 0x4a00053 end begin prog = irxevent button = up config = Key Up CurrentWindow delay = 5 repeat = 2 end begin prog = irxevent button = down config = Key Down CurrentWindow delay = 5 repeat = 2 end begin prog = irxevent button = ok config = Key Return CurrentWindow end end bilder #################################### # MODUS: TOTEM begin totem begin prog = Totem button = off config = quit flags = quit mode end begin prog = Totem button = forward config = seek_forward repeat = 3 end begin prog = Totem button = rewind config = seek_backward repeat = 3 end begin prog = Totem button = right config = volume_up repeat = 1 end begin prog = Totem button = left config = volume_down repeat = 1 end begin prog = Totem button = angle config = fullscreen end end totem #################################### # MODUS: VLC # Quelle: http://linuxundich.de/de/2009/04/pc-funkfernbedienung-x10-unter-ubuntu-mit-lirc/ begin vlc begin remote = x10 prog = vlc button = down config = key-nav-down repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = play config = key-play-pause repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = pause config = key-play-pause repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = ok config = key-nav-activate repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = mute config = key-vol-mute repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = volume- config = key-vol-down repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = dvdmenu config = key-disc-menu repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = stop config = key-quit repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = up config = key-nav-up repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = volume+ config = key-vol-up repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = right config = key-nav-right repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = rewind config = key-slower repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = forward config = key-faster repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = left config = key-nav-left repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = angle config = key-fullscreen repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = previous config = key-jump-medium repeat = 0 delay = 0 end begin remote = x10 prog = vlc button = next config = key-jump+medium repeat = 0 delay = 0 end end vlc #################################### # MODUS: SMPLAYER # FX, 2010-01-16 # Quelle: http://www.ralree.com/2009/11/07/smplayer-lirc-and-irexec-on-ubuntu-karmic/ begin smplayer begin prog = irexec button = down config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action rewind2); fi repeat = 3 delay = 1 end begin prog = irexec button = up config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action forward2); fi repeat = 3 delay = 1 end begin prog = irexec button = right config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action forward1); fi repeat = 3 delay = 1 end begin prog = irexec button = left config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action rewind1); fi repeat = 3 delay = 1 end begin prog = irexec button = fullscreen config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action fullscreen); fi repeat = 0 delay = 0 end begin prog = irexec button = ch- config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action next_subtitle); fi repeat = 3 delay = 0 end begin prog = irexec button = ch+ config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action next_audio); fi repeat = 3 delay = 0 end begin prog = irexec button = skipr config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action pl_prev); fi repeat = 3 delay = 0 end begin prog = irexec button = skipf config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action pl_next); fi repeat = 3 delay = 0 end begin prog = irexec button = editimage config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action next_aspect); fi repeat = 3 delay = 0 end begin prog = irexec button = reward config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action rewind3); fi repeat = 3 delay = 0 end begin prog = irexec button = ok config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action play_or_pause); fi repeat = 3 delay = 0 end begin prog = irexec button = play config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action play); fi repeat = 3 delay = 0 end begin prog = irexec button = pause config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action pause); fi repeat = 3 delay = 0 end begin prog = irexec button = stop config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action stop); fi repeat = 3 delay = 0 end begin prog = irexec button = forward config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action forward3); fi repeat = 3 delay = 0 end begin prog = irexec button = rename config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action osd); fi repeat = 3 delay = 0 end begin prog = irexec button = ren config = if [ $(ps -eo cmd | grep -c ^smplayer) -eq 1 ]; then (smplayer -send-action osd); fi repeat = 3 delay = 0 end end smplayer