It supports such actions, as "play","pause","stop","next song"(next), "prev song"(prev) and printing of current playing song(without parameters).
Dependences: mpc, konversation.
! You must create file ".bash_export" in you home folder and write there this lines:
[quote]
export MPD_HOST='*Your MPD host*'
export MPD_PORT='*Your MPD port*'
[/quote]
MPC requires this parameters.
In future, maybe, I will add check for this parameters.
p.s. I have wrote this script for myself, but I think, that it will be userful for another people. Maybe, I will not update it. If you don't like something - change it by your hands

Ru: mpc4irc - простенький скрипт на perl, созданный для управления MPD прямо из Konversation.
Это реализовано при помощи mpc.
Сей скрипт поддерживает такие действия, как:
Старт - play
Стоп - stop
Пауза - pause
Следующая песня - next
Предыдущая песня - prev
Вывод текущей песни - без параметров.
Зависимости: mpc, konversation %)
Для работы требуется создать в домашней директории файл ".bash_export" и прописать в него такие строки:
[quote]
export MPD_HOST='*Хост MPD*'
export MPD_PORT='*Порт MPD*'
[/quote]
Это требуется для корректной работы mpc, особенно - если он повешен на нестандартный порт.
Возможно, в будущем прикручу проверку, а сейчас мне лень

p.s. Писал всё это для себя, вряд ли буду что-то менять. Если не нравится что-либо - берём и изменяем


Ratings & Comments
0 Comments