Moc

来自Ubuntu中文
跳到导航跳到搜索

Moc音频服务程序


本文作者:aBiNg


简介

软件名:MOC(主页

描述文件:

apt-cache search --names-only moc | grep "audio"

安装:

sudo apt-get install moc moc-ffmpeg-plugin

使用及按键

启用:

mocp

当然,你可以查看帮助文件($mocp -h),加入启动参数,比如加载目录~/music中的曲目到播放列表:

mocp -a ~/music

我用Freemind做了个按键分布图,一目了然:

[点击查看]

配置

Mocp的config文件,默认是不在个人家目录建立的,需要从下面的目录复制、解压并改名:

cp /usr/share/doc/moc/examples/config.example.gz ~/.moc/
gunzip ~/.moc/config.example.gz -C ~/.moc/
mv ~/.moc/{config.example,config}

常用配置示例如下:

# This can also point to a playlist.
MusicDir = "~/Music"

# How to sort? FileName is the only option for now(暂行版本中只支持安名字排列)
Sort = FileName #

# Turn on repeat.
Repeat = yes

# Turn on AutoNext
AutoNext = yes

# Default FormatString (界面中显示格式)
# %n - Track number
# %a - Artist
# %A - Album
# %t - Title
# %(X:TRUE:FALSE) - ternary expression - if X exists, do TRUE, otherwaise
#                   FALSE. '\' - escape character (must be double, because of
#                   config interpreter). man zshmisc for more info.
FormatString = "%(n:%n :)%(a:%a - :)%(t:%t:)%(A: \(%A\):)"

SoundDriver = OSS, ALSA, JACK #建议使用oss

# Hide file name extensions(是否隐藏文件扩展名)
HideFileExtension = no

# Theme file. This can be absolute path or relative to
# /usr/share/moc/themes/ (depends on installation prefix) or ~/.moc/themes/
Theme = black_theme #界面主题,style & color etc.

# Choose a keymap file (relative to ~/.moc/ or absolute path)
# Example keymap with description is included (keymap.example).
#Keymap = my_keymap

相关链接