Wednesday, December 3, 2008

Кнопки плеера на PyPanel

В примере используется mocp плеер.

В автостарт записывается
# mocp -S &

На панель
LAUNCH_LIST = [
"mocp -r", "~/.themes/buttons/previous.png"),
("mocp -v +5", "~/.themes/buttons/plus.png"),
("mocp -v -5", "~/.themes/buttons/minus.png"),
("mocp -t shuffle", "~/.themes/buttons/shuffle.png"),
("mocp -P", "~/.themes/buttons/pause.png"),
("mocp -U", "~/.themes/buttons/unpause.png"),
("mocp -p", "~/.themes/buttons/play_from_first.png"),
("mocp -f", "~/.themes/buttons/next.png"),
]


Выделяем область для ланчеров
DESKTOP   = 1    # Desktop name section
TASKS = 2 # Task names section
TRAY = 3 # System tray section
CLOCK = 4 # Clock section
LAUNCHER = 5 # Application launcher section


Для других плееров см # player --help, чтобы узнать управление из консоли


Информация взята с сайта http://forum.ubuntu.ru/index.php?topic=42219.msg306514

No comments: