VLC Valdymas su lirc

Iš Žinynas.
Jump to navigation Jump to search

Pirmiausia reiktų pasiruošti ir įsidiegti lirc ir VLC.

Čia parašytas .lircrc kurį reiktų įkelti į HOME directoriją pvz.: /home/vartotojas/.lircrc

begin
prog = irexec
button = KEY_SHUTDOWN
config = sudo /usr/sbin/pm-hibernate &\n
end
begin
prog = irexec
button = KEY_PLAYPAUSE
config = /home/devnull/.vlc/control pause &\n
end
begin
prog = irexec
button = KEY_STOPCD
config = /home/devnull/.vlc/control stop &\n
end
begin
prog = irexec
button = KEY_PREVIOUSSONG
config = /home/devnull/.vlc/control previous &\n
end
begin
prog = irexec
button = KEY_NEXTSONG
config = /home/devnull/.vlc/control next &\n
end 
begin
prog = irexec
button = ARROW_LEFT
config = /home/devnull/.vlc/control rewind &\n
end
begin
prog = irexec
button = ARROW_RIGHT
config = /home/devnull/.vlc/control fastforward &\n
end 
begin
prog = irexec
button = VOLUME_DOWN
config = /home/devnull/.vlc/control voldown &\n
end 
begin
prog = irexec
button = VOLUME_UP
config = /home/devnull/.vlc/control volup &\n 
end
begin
prog = irexec
button = BACK
config = /home/devnull/.vlc/control snapshot &\n
end
begin
prog = irexec
button = NUMPAD_3
config = /home/devnull/.vlc/control fullscreen &\n
end
begin
prog = irexec
button = CHANNEL_UP
config = /home/devnull/.vlc/control faster &\n
end
begin
prog = irexec
button = CHANNEL_DOWN
config = /home/devnull/.vlc/control slower &\n
end

devnull pakeiskite į savo vartotojo vardą, tuomet paleiskite

# /usr/bin/irexec -d /home/devnull/.lircrc

taip pat, kad viskas veiktų reiktų scriptuko, kurį rasite čia.