Guest
Public paste!

root

By: a guest | Apr 30th, 2009 | Syntax: None | Size: 13.04 KB | Hits: 44 | Expires: Never
Copy text to clipboard
  1. # This is a configuration file for the MOC player. It should be named 'config'
  2. # and placed in directory ~/.moc/
  3. # Comments begins with '#'.
  4. # You can use quotes and escape ('\') in parameters
  5.  
  6.  
  7. # Show file titles (title, author, album) instead of file names.
  8. ReadTags                = yes
  9.  
  10. # Directory in which you store music files, if you specify it, you will be able
  11. # to quickly go to this directory with the '-m' parameter or the 'm' command.
  12. # This can also point to a playlist.
  13. MusicDir                = "/media/multimedias/music"
  14.  
  15. # How to sort? FileName is the only option for now.
  16. Sort                    = FileName
  17.  
  18. # Show errors in the streams, for example CRC errors or broken frames in mp3
  19. # files
  20. ShowStreamErrors        = no
  21.  
  22. # Ignore CRC errors in MP3 files. Most players do that, so the default value is
  23. # set to yes.
  24. Mp3IgnoreCRCErrors      = yes
  25.  
  26. # Turn on repeat.
  27. Repeat                  = yes
  28.  
  29. # Turn on shuffle.
  30. Shuffle                 = yes
  31.  
  32. # Turn on AutoNext
  33. AutoNext                = yes
  34.  
  35. # Default FormatString
  36. # %n - Track number
  37. # %a - Artist
  38. # %A - Album
  39. # %t - Title
  40. # %(X:TRUE:FALSE) - ternary expression - if X exists, do TRUE, otherwaise
  41. #                   FALSE. '\' - escape character (must be double, because of
  42. #                   config interpreter). man zshmisc for more info.
  43. FormatString            = "%(n:%n :)%(a:%a - :)%(t:%t:)%(A: \(%A\):)"
  44.  
  45. # Output buffer size in kilobytes. Minimum value is 128KB. */
  46. OutputBuffer            = 2048
  47.  
  48. # Input buffer size in kilobytes. Minimum value is 32KB. */
  49. InputBuffer             = 512
  50.  
  51. # How much to fill the input buffer before playing (in kilobytes)?
  52. # This can't be more than InputBuffer value.
  53. # Remember that for network streams beside the positive effect this also causes
  54. # delay between what you can hear and what is broadcasted.
  55. Prebuffering            = 64
  56.  
  57. # Use this HTTP proxy server for internet streams. If not set, the
  58. # environmential variables http_proxy and ALL_PROXY will be used if present.
  59. #HTTPProxy              = my_proxy:port
  60.  
  61. # Sound driver - OSS, ALSA, JACK, or null (only for debugging)
  62. # You can enter more than one driver separated by a coma. The first working
  63. # driver will be used.
  64. SoundDriver             = JACK, ALSA, OSS
  65.  
  66. # Jack output settings
  67. JackOutLeft             = "alsa_pcm:playback_1"
  68. JackOutRight            = "alsa_pcm:playback_2"
  69.  
  70. # OSS output device
  71. #OSSDevice              = /dev/dsp
  72.  
  73. # OSS Mixer device
  74. #OSSMixerDevice         = /dev/mixer
  75.  
  76. # OSS Mixer channel: pcm or master
  77. #OSSMixerChannel                = pcm
  78.  
  79. # Second OSS Mixer channel: pcm or master
  80. #OSSMixerChannel2       = master
  81.  
  82. # ALSA mixer device
  83. AlsaMixer               = PCM
  84.  
  85. # Second ALSA mixer device
  86. AlsaMixer2              = Master
  87.  
  88. # ALSA output device
  89. AlsaDevice              = default
  90.  
  91. # Save software mixer state ?
  92. # If enabled, a file 'softmixer' will
  93. # be created in '~/.moc/' storing the
  94. # mixersetting set when the server is shut-down.
  95. # Note that there is a 'hidden' 'Amplification'
  96. # setting in that file.
  97. # Amplification (0-200) is used to scale
  98. # the mixer setting (0-100). This results
  99. # in a higher signal amplitude but may also
  100. # produce clipping.
  101. #Softmixer_SaveState = yes
  102.  
  103. # Show files with dot at the beginning?
  104. ShowHiddenFiles         = no
  105.  
  106. # Start in the music directory if no arguments are given. If set to no, start
  107. # in the current directory.
  108. StartInMusicDir         = yes
  109.  
  110. # Hide file name extensions
  111. HideFileExtension       = no
  112.  
  113. # Show file format in menu.
  114. ShowFormat              = yes
  115.  
  116. # Show file time in menu. Possible options: yes, no, IfAvailable - show the
  117. # time only when it was read before (often works faster)
  118. ShowTime                = IfAvailable
  119.  
  120. # Theme file. This can be absolute path or relative to
  121. # /usr/share/moc/themes/ (depends on installation prefix) or ~/.moc/themes/
  122.  Theme                  = darkdot_theme
  123.  
  124. # The theme used when running on on xterm
  125.  XtermTheme = darkdot_theme
  126.  
  127. # MOC directory - where pid file, socket, and state files are stored.
  128. # You can use ~ at the begining
  129.  MOCDir         = /.moc
  130.  
  131. # Use mmap() to read files. mmap() is much slower on NFS.
  132. UseMmap                 = no
  133.  
  134. # Perform character set conversion using iconv() to tags and file names
  135. # read from playlist files. This option has format: FROM:TO.
  136. # To get list of supported sets use the iconv -l command.
  137.  
  138. # Assume this encoding for ID3 version 1/1.1 tags (mp3 files). Unlike ID3v2
  139. # UTF-8 is not used here and MOC can't guess how tags are encoded. Another
  140. # solution is using librcc (see the next option). This option is ignored
  141. # if UseRCC is set to yes.
  142. #ID3v1TagsEncoding              = WINDOWS-1250
  143.  
  144. # Use librcc to fix ID3 version 1/1.1 tags encoding.
  145. #UseRCC                         = yes
  146.  
  147. # Use librcc to filenames and directory names encoding.
  148. #UseRCCForFilesystem                    = yes
  149.  
  150. # Remember the playlist after exit?
  151. SavePlaylist            = yes
  152.  
  153. # When using more than one client (interface) at a time, do the share the
  154. # playlist?
  155. SyncPlaylist            = yes
  156.  
  157. # Choose a keymap file (relative to ~/.moc/ or absolute path)
  158. # Example keymap with description is included (keymap.example).
  159. #Keymap                 = my_keymap
  160.  
  161. # Use ASCII characters instead of graphic for drawing lines. This helps on
  162. # some terminals.
  163. ASCIILines              = no
  164.  
  165. # FastDirs, these allow you jump directly to a directory, the key bindings are
  166. # in the keymap file.
  167. #Fastdir1 = /mp3/rock
  168. #Fastdir2 = /mp3/electronic
  169. #Fastdir3 = /mp3/rap
  170. #Fastdir4 = /mp3/etc
  171. #Fastdir5 =
  172. #Fastdir6 =
  173. #Fastdir7 =
  174. #Fastdir8 =
  175. #Fastdir9 =
  176. #Fastdir10 =
  177.  
  178. # How fast to seek? Number of seconds per key stroke.
  179. #SeekTime               = 1
  180.  
  181. # How fast to seek (when using silent seeking)? Number of seconds per key
  182. # stroke.
  183. #SilentSeekTime         = 5
  184.  
  185. # Resample method to use. There are few methods of resampling sound supported
  186. # by libresamplerate. The default is the fastest (linear). Better description
  187. # is here: http://www.mega-nerd.com/libsamplerate/api_misc.html#Converters
  188. #
  189. # High quality (based on bandlimited interpolation), but slow methods:
  190. #
  191. # SincBestQuality - really slow (I know you probably have an xx GHz processor,
  192. #                       but it's not enough to not see this in the top output :)
  193. #                       The worst case Signal-to-Noise Ratio is 97dB.
  194. # SincMediumQuality - much faster
  195. # SincFastest - the fastest bandlimited interpolation
  196. #
  197. # Poor quality, but much faster methods:
  198. #
  199. # ZeroOrderHold - really poor quality, but it's really fast
  200. # Linear - a bit better and a bit slower
  201. #
  202. #ResampleMethod         = Linear
  203.  
  204. # Always use this sample rate when opening the audio device (and resample the
  205. # sound is necessary). When set to 0 the device is opened with the file's rate.
  206. #ForceSampleRate        = 48000
  207.  
  208. # By default even if the sound card reports that it can output 24bit samples
  209. # MOC converts 24bit PCM to 16bit. This option set to yes allows MOC to use
  210. # 24bit output (for example MP3 decoder uses this format). This is disabled
  211. # in the default configuration because there were reports that it prevents
  212. # from playing MP3 files on some soundcards.
  213. #Allow24bitOutput       = no
  214.  
  215. # Use realtime priority for output buffer thread. This will prevent gaps while
  216. # playing even with heavy load. The user which runs MOC must have permissions
  217. # to set such a priority. This could be dangerous, because it is possible that
  218. # a bug in MOC will freeze your computer.
  219. #UseRealtimePriority    = no
  220.  
  221. # Size of the in-memory cache for file tags in KB.
  222. TagsCacheSize           = 256
  223.  
  224. # Number items in the playlist.
  225. #PlaylistNumbering      = yes
  226.  
  227. # Main window layoutis can be configured. You can change the position and the
  228. # size of the menus (directory and playlist). You have 3 layouts ant switch
  229. # between then using the 'l' key (standard mapping). By default only 2 layouts
  230. # are configured.
  231. #
  232. # The format is as folows:
  233. # Each menu is described in format NAME:POSITION_X,POSITION_Y,WIDTH,HEIGHT
  234. # NAME is directory or playlist
  235. # Other parameters define position and size of the menu. They can be absolute
  236. # numbers (like 10) or a percent value of the screen size (like 45%).
  237. # WIDTH and HEIGHT can have value of FILL which means fill the screen from
  238. # the menu's position to the border.
  239. # Separate menu descriptions using a space.
  240. # Menus may overlap.
  241. # You must describe at least one menu (default is to fill the whole window).
  242. # There must be at least one layout (Layout1) defined. Other can be empty ("").
  243. #
  244. # Examples:
  245. #
  246. # Just one layout, the directory will occupy the whole screen, the playlist
  247. # will have 1/4 of the screen size and be positioned at lower right corner.
  248. # Layout1 = "playlist:50%,50%,50%,50%"
  249. # Layout2 = ""
  250. # Layout3 = ""
  251. #
  252. # The scrren is split into two parts: playlist at the top and the directory
  253. # menu at the bottom. Playlist will occupy 10 lines and the directory menu
  254. # the rest.
  255. # Layout1 = "playlist:0,0,100%,10 directory:0,10,100%,FILL"
  256. #
  257. # Default configuration:
  258. # Layout1               = "directory:0,0,50%,100% playlist:50%,0,50%,100%"
  259. # Layout2               = "directory:0,0,100%,100% playlist:0,0,100%,100%"
  260. # Layout3               = ""
  261.  
  262. # When the song changes, should the menu be scrolled so that the currently
  263. # played file is visible?
  264. FollowPlayedFile        = yes
  265.  
  266. # What to do if the interface was started and something from the playlist is
  267. # playing? If CanStartInPlaylist is set to "yes", the interface will switch to
  268. # the playlist. When set to "no" it will start from the last directory.
  269. CanStartInPlaylist      = yes
  270.  
  271. # Executing external commands (1 - 10) invoked with key commands (F1 - F10 by
  272. # default).
  273. # Some arguments are substituted befor executing:
  274. # %f - file path
  275. # %i - title made from tags
  276. #
  277. # Data from tags:
  278. # %t - title
  279. # %a - album
  280. # %r - artist
  281. # %n - track
  282. # %m - time of the file (in seconds)
  283. #
  284. # Parameters above applys to the currently selected file. If you change them to
  285. # capital letters, they are taken from the currently played file.
  286. #
  287. # Programms are run using execv(), not a shell, so you can't do things like
  288. # redirecting the output to a file. The command string is split using blank
  289. # characters as separators, the first element is the command to be executed
  290. # and the rest are parameters, so if you use "echo Playing: %i" we run program
  291. # echo (from $PATH) with 2 parameters: 'Playing:' string and the title. Even
  292. # if the title contains spaces it's still one parameter and it's safe if it
  293. # contains `rm -rf /`.
  294. #
  295. # Examples:
  296. # ExecCommand1          = "cp %f /mnt/usb_drive"
  297. # ExecCommand2          = "/home/joe/now_playing %i"
  298.  
  299. # Display the cursor in the line with the selected file. This can be usefu with
  300. # a braille display.
  301. # UseCursorSelection    = no
  302.  
  303. # Set the terminal title when running under xterm.
  304. #SetXtermTitle          = yes
  305.  
  306. # Set the terminal title when running under screen.
  307. #SetScreenTitle         = yes
  308.  
  309. # Display full paths instead of just file names in the playlist.
  310. #PlaylistFullPaths      = yes
  311.  
  312. # Enable oversampling (yes/no)
  313. #ModPlug_Oversampling = yes
  314. # Enable noise reduction (yes/no)
  315. #ModPlug_NoiseReduction = yes
  316. # Enable reverb (yes/no)
  317. #ModPlug_Reverb = no
  318. # Enable mega-bass (yes/no)
  319. #ModPlug_MegaBass = no
  320. # Enable surround (yes/no)
  321. #ModPlug_Surround = no
  322. # Resampling mode. One of FIR/SPLINE/LINEAR/NEAREST
  323. # FIR :      8 tap fir filter (extremely high quality)
  324. # SPLINE :   Cubic spline interpolation (high quality)
  325. # LINEAR :   Linear interpolation (fast, good quality)
  326. # NEAREST :  No interpolation (very fast, extremely bad sound quality)
  327. #ModPlug_ResamplingMode = FIR
  328. # Number of channles (1 or 2)
  329. #ModPlug_Channels = 2
  330. # Bits per sample (8,16,32). 32 Bits seems ot be buggy...
  331. #ModPlug_Bits = 16
  332. # Sampling rate (11025, 22050, 44100, 48000)
  333. #ModPlug_Frequency = 44100
  334. # Reverb level 0(quiet)-100(loud)
  335. #ModPlug_ReverbDepth = 0
  336. # Reverb delay in ms, usually 40-200ms
  337. #ModPlug_ReverbDelay = 0
  338. # Bass level 0(quiet)-100(loud)
  339. #ModPlug_BassAmount = 0
  340. # Bass cutoff in Hz (10-100)
  341. #ModPlug_BassRange = 10
  342. # Surround level 0(quiet)-100(heavy)
  343. #ModPlug_SurroundDepth = 0
  344. # Surround delay in ms, usually 5-40ms
  345. #ModPlug_SurroundDelay = 0
  346. # Number of times to loop. Zero prevents looping. -1 loops forever.
  347. #ModPlug_LoopCount = 0
  348.  
  349. #TiMidity-Options
  350. # Rate must be in between 8000 and 48000
  351. #TiMidity_Rate = 44100
  352. # Bitrate is 8 or 16
  353. #TiMidity_Bits = 16
  354. # Channels is 1 or 2
  355. #TiMidity_Channels = 2
  356. # Volume-Range is 0-800
  357. #TiMidity_Volume = 100
  358. # You can setup a TiMidity-Config-File here
  359. # Leave unset to use library defaults (/etc/timidity.cfg mostly)
  360. #TiMidity_Config =
  361.  
  362.  
  363. # SidPlay2-Options
  364. # Default length of a song if not in database (seconds)
  365. #SidPlay2_DefaultSongLength = 180
  366. # Play at least a specific time if song is shorter (seconds)
  367. #SidPlay2_MinimumSongLength = 0
  368. # Set path to a HVSC-compatible database (if not set, database is disabled)
  369. #SidPlay2_Database
  370. # Sampling Frequency (4000-48000Hz)
  371. #SidPlay2_Frequency = 44100
  372. # Sampling Resolution (8/16)
  373. #SidPlay2_Bits = 16
  374. # Playback Mode :
  375. # "M": Mono (best for mady SIDs)
  376. # "S": Stereo
  377. # "L"/"R": Left / Right
  378. #SidPlay2_PlayMode = "M"
  379. # Optimisation-level (0-2), 0 is best quality
  380. #SidPlay2_Optimisation = 0
  381. # Use start-song information from SID (1) or start at first song (0)
  382. # Songs before the start-song won't be played.
  383. #SidPlay2_StartAtStart = 1
  384. # Play sub-tunes
  385. #SidPlay2_PlaySubTunes = 1
  386.  
  387. # OnSongChange
  388. # Specify the full path (i.e. no ~) of an executable to run
  389. # Arguments will be passed, and you can use the following escapes:
  390. #  %a artist
  391. #  %r album
  392. #  %f filename
  393. #  %t title
  394. #  %n track
  395. #  %d file duration in XX:YY form
  396. #  %D file duration, number of seconds
  397. #
  398. # No pipes/redirects can be used directly, but writing a shell
  399. # script can do the job.
  400. #
  401. # Example:
  402. #
  403. #OnSongChange = "/home/jack/.moc/myscript %a %r"
  404.  
  405. # OnStop
  406. # Run the following command (full path, no arguments) when MOC changes state
  407. # to stopped (when user stopped playing or changes a song).
  408. #
  409. #OnStop = "/home/jack/.moc/myscript_on_stop"