个人工具

“Moc”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
配置
使用及按键
第13行: 第13行:
  
 
==使用及按键==
 
==使用及按键==
我用Freemind做了个按键分部图,一目了然,暂不作补充:
+
我用Freemind做了个按键分部图,一目了然:
  
 
[[http://abing.blog.ubuntu.org.cn/files/2007/11/moc-keymap.png 点击查看]]
 
[[http://abing.blog.ubuntu.org.cn/files/2007/11/moc-keymap.png 点击查看]]

2007年11月8日 (四) 19:10的版本

Moc音频服务程序

简介

软件名:MOC(主页

描述文件:

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

安装:

sudo apt-get install moc moc-ffmpeg-plugin

帮助文件:

mocp -h

使用及按键

我用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