Thursday, August 30, 2007

MythTV .xsession and irxevent file for Myth

By now I'm sure my imaginary reading are tiring of my constant MythTV related ramblings probably good that they are imaginary then (they are also all hot girls)...




Anyway here's my MythTV account .xsession. It has a work around for a bug in the Nvidia driver (that puts a blue border round overlay videos), runs an xterm in the background (in the unlikely event that you need to fix the amazingly stable MythTV) and runs irxevent (which processes Infrared signals and throws out key presses). Finally it runs mythwelcome (a program which runs the mythtv frontend):

#!/bin/bash
xvattr -a XV_COLORKEY -v 66048
metacity&
xterm&
./irxevent --daemon ~/irxevent.conf
mythwelcome


Here's the irxevent.conf I use with MythTV (and the lirc.conf I previously posted):

begin
prog = irxevent
button = keyChanUp
repeat = 3
config = Key Up CurrentWindow
end

begin
prog = irxevent
button = keyChanDown
repeat = 3
config = Key Down CurrentWindow
end

begin
prog = irxevent
button = keyPower
config = Key Escape CurrentWindow
end

begin
prog = irxevent
button = Menu
config = Key M CurrentWindow
end

begin
prog = irxevent
button = MenuUp
repeat = 3
config = Key W CurrentWindow
end

begin
prog = irxevent
button = MenuRight
repeat = 3
config = Key D CurrentWindow
end

begin
prog = irxevent
button = MenuDown
repeat = 3
config = Key S CurrentWindow
end

begin
prog = irxevent
button = MenuLeft
repeat = 3
config = Key A CurrentWindow
end

begin
prog = irxevent
button = keyPlay
config = Key KP_Enter CurrentWindow
end

begin
prog = irxevent
button = key0
config = Key 0 CurrentWindow
end

begin
prog = irxevent
button = key1
config = Key 1 CurrentWindow
end

begin
prog = irxevent
button = key2
config = Key 2 CurrentWindow
end

begin
prog = irxevent
button = key3
config = Key 3 CurrentWindow
end

begin
prog = irxevent
button = key4
config = Key 4 CurrentWindow
end

begin
prog = irxevent
button = key5
config = Key 5 CurrentWindow
end

begin
prog = irxevent
button = key6
config = Key 6 CurrentWindow
end

begin
prog = irxevent
button = key7
config = Key 7 CurrentWindow
end

begin
prog = irxevent
button = key8
config = Key 8 CurrentWindow
end

begin
prog = irxevent
button = key9
config = Key 9 CurrentWindow
end

begin
prog = irxevent
button = keyVolDown
config = Key F10 CurrentWindow
end

begin
prog = irxevent
button = keyVolUp
config = Key F11 CurrentWindow
end

begin
prog = irxevent
button = keyPause
config = Key P CurrentWindow
end


No comments: