LINUX.ORG.RU

LIRC


0

0

Люди , если не жалко , киньте кто-нить файл .lircrc хочется на примере разобраться как он работает !! Только действительно рабочий файл , а не 3 строчки , как уменя !!!

Заранее спасибо !!!

anonymous

Там все просто, обычно в документации к программам присутствуют примеры того, как настраивать LIRC для них.

Весь файл не покажу, очень длинно, вот кусок, относящийся к xawtv.

Названия кнопок определяются в lircd.conf.



# xawtv section

begin xawtv

    begin

prog   = xawtv

button = POWER

config = quit

flags  = mode

    end

    begin

prog   = xawtv

button = 0

config = setstation 0

    end

    begin

prog   = xawtv

button = 1

config = setstation 1

    end

    begin

prog   = xawtv

button = 2

config = setstation 2

    end

    begin

prog   = xawtv

button = 3

config = setstation 3

    end

    begin

prog   = xawtv

button = 4

config = setstation 4

    end

    begin

prog   = xawtv

button = 5

config = setstation 5

    end

    begin

prog   = xawtv

button = 6

config = setstation 6

    end

    begin

prog   = xawtv

button = 7

config = setstation 7

    end

    begin

prog   = xawtv

button = 8

config = setstation 8

    end

    begin

prog   = xawtv

button = 9

config = setstation 9

    end

    begin

prog   = xawtv

button = FULLSCREEN

config = fullscreen

    end

    begin

prog   = xawtv

button = CAPTURE

config = snap ppm win tv-snapshot.ppm



    end

    begin

prog   = xawtv

button = MUTE

config = volume mute



    end

    begin

prog   = xawtv

button = RECORD

config = movie file tv-snapshot.avi start



    end

    begin

prog   = xawtv

button = STOP

config = movie file tv-snapshot.avi stop



    end

    begin

prog   = xawtv

button = VOL_UP

config = volume inc

repeat = 2

    end

    begin

prog   = xawtv

button = VOL_DOWN

config = volume dec

repeat = 2

    end

    begin

prog   = xawtv

button = CH_UP

config = setstation next

    end

    begin

prog   = xawtv

button = CH_DOWN

config = setstation prev

    end

    begin

prog   = xawtv

button = RED

config = bright inc

repeat = 2

    end

    begin

prog   = xawtv

button = GREEN

config = bright dec

repeat = 2

    end

    begin

prog   = xawtv

button = YELLOW

config = contrast inc

repeat = 2

    end

    begin

prog   = xawtv

button = BLUE

config = contrast dec

repeat = 2

    end

end xawtv

DronK
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.