You are not logged in.
Pages: 1
Is possible to make LIRC control thunar? (like the arrow keys do: move from 1 file to the next). I also want the back button to up 1 directory.
I would also like to make one of my remote buttons send "alt tab".
thanks in advance
Last edited by Dethredic (2009-11-10 21:44:10)
Offline
Offline
ahh, thanks!
edit: ok I did some playing with it but I can't seem to get some things:
stuff in bold isn't working.
begin
prog = irxevent
button = Aspect
config = Key f MPlayer
end
begin
prog =
button = Power
config =
end
begin
prog =
button = Radio
config =
end
begin
prog = irexec
button = Music
config = mpc toggle
end
begin
prog = irexec
button = Videos
config = thunar
end
begin
prog = irxevent
button = Pause
config = Key p MPlayer
end
begin
prog = irxevent
button = Play
config = Key p MPlayer
end
begin
prog = irxevent
button = Stop
config = Key Enter MPlayer
end
begin
prog =
button = Forward
config =
end
begin
prog =
button = Skip
config =
end
begin
prog =
button = Replay
config =
end
begin
prog =
button = Rewind
config =
end
begin
prog = irxevent
button = OK
config = Key Enter CurrentWindow
end
begin
prog = irxevent
button = Up
config = Key Up CurrentWindow
end
begin
prog = irxevent
button = Down
config = Key Down CurrentWindow
end
begin
prog = irxevent
button = Left
config = Key Left CurrentWindow
end
begin
prog = irxevent
button = Right
config = Key Right CurrentWindow
end
begin
prog =
button = Back
config =
end
begin
prog = irxevent
button = VolUp
config = Key 0 MPlayer
end
begin
prog = irxevent
button = VolDown
config = Key 9 MPlayer
end
begin
prog = irxevent
button = Mute
config = Key m MPlayer
end
begin
prog =
button = ChanUp
config =
end
begin
prog =
button = ChanDown
config =
end
begin
prog = irxevent
button = Home
config = Key alt-Tab RootWindow
end
begin
prog = irxevent
button = More
config = Key v MPlayer
end
begin
prog =
button = Red
config =
end
begin
prog =
button = Green
config =
end
begin
prog =
button = Yellow
config =
end
begin
prog =
button = Blue
config =
end
Last edited by Dethredic (2009-11-10 13:13:24)
Offline
Hi!
I can't help you with stuff in bold thats not working but mplayer, xine, mythtv.. has lirc support so you don't need irxevent.
here is my mplayer config in .lircrc
#MPlayer
begin
prog = mplayer
button = Clear
config = quit
end
begin
prog = mplayer
button = Home
config = osd
end
begin
prog = mplayer
button = Left
config = seek -10
repeat = 1
end
begin
prog = mplayer
button = Right
config = seek +10
repeat = 1
end
begin
prog = mplayer
button = Rewind
config = seek -60
repeat = 1
end
begin
prog = mplayer
button = Forward
config = seek +60
repeat = 1
end
begin
prog = mplayer
button = Pause
config = pause
end
begin
prog = mplayer
button = Play
config = pause
end
begin
prog = mplayer
button = VolUp
config = volume +1
repeat = 1
end
begin
prog = mplayer
button = VolDown
config = volume -1
repeat = 1
end
begin
prog = mplayer
button = Mute
config = mute
end
begin
prog = mplayer
button = OK
#repeat = 3
config = vo_fullscreen
end
Offline
Thanks, I may use some of those but I plan on writing scripts so that depending on if the mode is set to music / movies it will do something different (they are mainly just there for testing).
I changed the alt-tab entry to CurrentWindow and I got tabs, so I am assuming that the rootwindow doesn't work with openbox. I changed the Key Enter CurrentWindow to Key Return CurrentWindow and that worked.
Offline
I'm glad it worked out for you.
Here is another cool lirc program called irexec
http://www.lirc.org/html/irexec.html
it can do things like.
### Start XBMC and VDR
begin
button = Print
prog = irexec
config = /home/username/bin/mediacenter
end
##Amarok
begin
prog = irexec
button = Play
config = dcop amarok player play
end
Offline
Alright, there is only one thing I am still struggling with.
begin
prog = irxevent
button = Right
config = Key Right CurrentWindow
end
That works fine, but it also allows these commands to be sent to my mplayer window which is not what I want. I tried getting thunar's window name, but it doesn't seem to allow spaces, wildcards or quotes so I have yet to be successful.
Finally is there a better way to do the back button (go up 1 dir) than writing a short script that gets the current dir, kills thunar and opens up a new one in the dir one up?
Thanks in advance.
Last edited by Dethredic (2009-11-10 21:49:19)
Offline
Pages: 1