Advertisement
constantin-net

.moc/config

Jul 25th, 2018
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.81 KB | None | 0 0
  1. # This is a configuration file for the MOC player. It should be named 'config'
  2. # and placed in the directory ~/.moc/
  3. # Comments begin 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 = no
  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"
  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 = no
  28.  
  29. # Turn on shuffle.
  30. Shuffle = no
  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, otherwise
  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. # environment 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 comma. The first working
  63. # driver will be used.
  64. #SoundDriver = ALSA, JACK, OSS
  65. SoundDriver = ALSA
  66.  
  67. # Jack output settings.
  68. JackOutLeft = "alsa_pcm:playback_1"
  69. JackOutRight = "alsa_pcm:playback_2"
  70.  
  71. # OSS output device.
  72. OSSDevice = /dev/dsp
  73.  
  74. # OSS Mixer device.
  75. OSSMixerDevice = /dev/mixer
  76.  
  77. # OSS Mixer channel: pcm or master.
  78. OSSMixerChannel1 = pcm
  79.  
  80. # Second OSS Mixer channel: pcm or master.
  81. OSSMixerChannel2 = master
  82.  
  83. # ALSA mixer device.
  84. AlsaMixer1 = PCM
  85.  
  86. # Second ALSA mixer device.
  87. AlsaMixer2 = Master
  88.  
  89. # ALSA output device.
  90. AlsaDevice = default
  91.  
  92. # Save software mixer state?
  93. # If enabled, a file 'softmixer' will
  94. # be created in '~/.moc/' storing the
  95. # mixersetting set when the server is shut-down.
  96. # Note that there is a 'hidden' 'Amplification'
  97. # setting in that file.
  98. # Amplification (0-200) is used to scale
  99. # the mixer setting (0-100). This results
  100. # in a higher signal amplitude but may also
  101. # produce clipping.
  102. #Softmixer_SaveState = yes
  103.  
  104. # Save equalizer state?
  105. # If enabled, a file 'equalizer' will
  106. # be created in '~/.moc/' storing the
  107. # equalizer settings when the server is shut-down.
  108. # There is a 'hidden' 'Mixin' setting in that file.
  109. # Mixin (0.0-1.0) is used to determine how much of
  110. # the original signal is used after equalizing.
  111. # 0 means to only use the equalized sound, 1
  112. # effectively disabled the mixer.
  113. # Default is 0.25
  114. #Equalizer_SaveState = yes
  115.  
  116. # Show files with dot at the beginning?
  117. ShowHiddenFiles = yes
  118.  
  119. # Start in the music directory if no arguments are given. If set to no, start
  120. # in the current directory.
  121. StartInMusicDir = no
  122.  
  123. # Hide file name extensions.
  124. HideFileExtension = no
  125.  
  126. # Show file format in menu.
  127. ShowFormat = no
  128.  
  129. # Show file time in menu. Possible options: yes, no, IfAvailable - show the
  130. # time only when it was read before (often works faster).
  131. #ShowTime = IfAvailable
  132. ShowTime = No
  133.  
  134. # Theme file. This can be absolute path or relative to
  135. # /usr/share/moc/themes/ (depends on installation prefix) or ~/.moc/themes/
  136. #Theme = darkdot_theme
  137. #Theme = dark_theme
  138. Theme = winamp_theme
  139.  
  140. # The theme used when running on an xterm.
  141. # XTermTheme = transparent-background
  142.  
  143. # MOC directory - where pid file, socket, and state files are stored.
  144. # You can use ~ at the beginning.
  145. # MOCDir = ~/.moc
  146.  
  147. # Use mmap() to read files. mmap() is much slower on NFS.
  148. UseMmap = no
  149.  
  150. # Assume this encoding for ID3 version 1/1.1 tags (mp3 files). Unlike ID3v2
  151. # UTF-8 is not used here and MOC can't guess how tags are encoded. Another
  152. # solution is using librcc (see the next option). This option is ignored
  153. # if UseRCC is set to yes.
  154. ID3v1TagsEncoding = WINDOWS-1251
  155.  
  156. # Use librcc to fix ID3 version 1/1.1 tags encoding.
  157. #UseRCC = yes
  158.  
  159. # Use librcc to filenames and directory names encoding.
  160. #UseRCCForFilesystem = yes
  161.  
  162. # Remember the playlist after exit?
  163. SavePlaylist = yes
  164.  
  165. # When using more than one client (interface) at a time, do they share the
  166. # playlist?
  167. SyncPlaylist = yes
  168.  
  169. # Choose a keymap file (relative to ~/.moc/ or absolute path).
  170. # Example keymap with description is included (keymap.example).
  171. Keymap = keymap
  172.  
  173. # Use ASCII characters instead of graphic for drawing lines. This helps on
  174. # some terminals.
  175. ASCIILines = no
  176.  
  177. # FastDirs, these allow you to jump directly to a directory, the key bindings
  178. # are in the keymap file.
  179. Fastdir1 = /media/data01/Music
  180. Fastdir2 = /media/data02/an/OST
  181. Fastdir3 = /media/data02/mus2
  182. #Fastdir4 = /mp3/etc
  183. #Fastdir5 =
  184. #Fastdir6 =
  185. #Fastdir7 =
  186. #Fastdir8 =
  187. #Fastdir9 =
  188. #Fastdir10 =
  189.  
  190. # How fast to seek? Number of seconds per key stroke.
  191. SeekTime = 10
  192.  
  193. # How fast to seek (when using silent seeking)? Number of seconds per key
  194. # stroke.
  195. SilentSeekTime = 5
  196.  
  197. # Resample method to use. There are a few methods of resampling sound supported
  198. # by libresamplerate. The default is the fastest (linear). Better description
  199. # is here: http://www.mega-nerd.com/libsamplerate/api_misc.html#Converters
  200. #
  201. # High quality (based on bandlimited interpolation), but slow methods:
  202. #
  203. # SincBestQuality - really slow (I know you probably have an xx GHz processor,
  204. # but it's not enough to not see this in the top output :)
  205. # The worst case Signal-to-Noise Ratio is 97dB.
  206. # SincMediumQuality - much faster.
  207. # SincFastest - the fastest bandlimited interpolation.
  208. #
  209. # Poor quality, but much faster methods:
  210. #
  211. # ZeroOrderHold - really poor quality, but it's really fast.
  212. # Linear - a bit better and a bit slower.
  213. #
  214. #ResampleMethod = Linear
  215.  
  216. # Always use this sample rate when opening the audio device (and resample the
  217. # sound if necessary). When set to 0 the device is opened with the file's rate.
  218. #ForceSampleRate = 48000
  219.  
  220. # By default even if the sound card reports that it can output 24bit samples
  221. # MOC converts 24bit PCM to 16bit. This option set to yes allows MOC to use
  222. # 24bit output (for example MP3 decoder uses this format). This is disabled
  223. # in the default configuration because there were reports that it prevents
  224. # MP3 files from playing on some soundcards.
  225. #Allow24bitOutput = no
  226.  
  227. # Use realtime priority for output buffer thread. This will prevent gaps while
  228. # playing even with heavy load. The user which runs MOC must have permissions
  229. # to set such a priority. This could be dangerous, because it is possible that
  230. # a bug in MOC will freeze your computer.
  231. #UseRealtimePriority = no
  232.  
  233. # Size of the in-memory cache for file tags in KB.
  234. TagsCacheSize = 256
  235.  
  236. # Number items in the playlist.
  237. #PlaylistNumbering = yes
  238.  
  239. # Main window layouts can be configured. You can change the position and the
  240. # size of the menus (directory and playlist). You have 3 layouts and switch
  241. # between then using the 'l' key (standard mapping). By default only 2 layouts
  242. # are configured.
  243. #
  244. # The format is as follows:
  245. # Each menu is described in the format NAME:POSITION_X,POSITION_Y,WIDTH,HEIGHT
  246. # NAME is directory or playlist.
  247. # The other parameters define position and size of the menu. They can be
  248. # absolute numbers (like 10) or a percent value of the screen size (like 45%).
  249. # WIDTH and HEIGHT can have value of FILL which means fill the screen from
  250. # the menu's position to the border.
  251. # Separate menu descriptions using a space.
  252. # Menus may overlap.
  253. # You must describe at least one menu (default is to fill the whole window).
  254. # There must be at least one layout (Layout1) defined. Others can be empty ("").
  255. #
  256. # Examples:
  257. #
  258. # Just one layout, the directory will occupy the whole screen, the playlist
  259. # will have 1/4 of the screen size and be positioned at lower right corner.
  260. # Layout1 = "playlist:50%,50%,50%,50%"
  261. # Layout2 = ""
  262. # Layout3 = ""
  263. #
  264. # The screen is split into two parts: playlist at the top and the directory
  265. # menu at the bottom. Playlist will occupy 10 lines and the directory menu
  266. # the rest.
  267. # Layout1 = "playlist:0,0,100%,10 directory:0,10,100%,FILL"
  268. #
  269. # Default configuration:
  270. # Layout1 = "directory:0,0,50%,100% playlist:50%,0,50%,100%"
  271. # Layout2 = "directory:0,0,100%,100% playlist:0,0,100%,100%"
  272. # Layout3 = ""
  273.  
  274. # When the song changes, should the menu be scrolled so that the currently
  275. # played file is visible?
  276. FollowPlayedFile = yes
  277.  
  278. # What to do if the interface was started and something from the playlist is
  279. # playing? If CanStartInPlaylist is set to "yes", the interface will switch to
  280. # the playlist. When set to "no" it will start from the last directory.
  281. CanStartInPlaylist = yes
  282.  
  283. # Executing external commands (1 - 10) invoked with key commands (F1 - F10 by
  284. # default).
  285. # Some arguments are substituted before executing:
  286. # %f - file path
  287. # %i - title made from tags
  288. # %S - start block mark (in seconds)
  289. # %E - end block mark (in seconds)
  290. #
  291. # Data from tags:
  292. # %t - title
  293. # %a - album
  294. # %r - artist
  295. # %n - track
  296. # %m - time of the file (in seconds)
  297. #
  298. # Parameters above apply to the currently selected file. If you change them to
  299. # capital letters, they are taken from the file currently playing.
  300. #
  301. # Programs are run using execv(), not a shell, so you can't do things like
  302. # redirecting the output to a file. The command string is split using blank
  303. # characters as separators, the first element is the command to be executed
  304. # and the rest are parameters, so if you use "echo Playing: %I" we run program
  305. # echo (from $PATH) with 2 parameters: 'Playing:' string and the title. Even
  306. # if the title contains spaces it's still one parameter and it's safe if it
  307. # contains `rm -rf /`.
  308. #
  309. # Examples:
  310. #ExecCommand5 = "cp -n %f /media/data02/mus2/new_age_solo_piano_an"
  311. # ExecCommand2 = "/home/joe/now_playing %I"
  312.  
  313. # Display the cursor in the line with the selected file. This can be useful with
  314. # a braille display.
  315. # UseCursorSelection = no
  316.  
  317. # Set the terminal title when running under xterm.
  318. #SetXtermTitle = yes
  319.  
  320. # Set the terminal title when running under screen.
  321. #SetScreenTitle = yes
  322.  
  323. # Display full paths instead of just file names in the playlist.
  324. #PlaylistFullPaths = yes
  325.  
  326. # The following setting describes to how block markers are displayed
  327. # in the play time progress bar. Its value is a string of exactly three
  328. # characters. The first character is displayed in a position which
  329. # corresponds to the time marked as the start of a block and the last
  330. # character to the time marked as the end of the block. The middle
  331. # character is displayed instead if both the start and the end of the block
  332. # would fall in the same position (within the resolution of the interface).
  333. # You can turn off the displaying of these block marker positions by using
  334. # three space characters.
  335. #BlockDecorators = "`\"'"
  336.  
  337. # How long (in seconds) to leave a message displayed on the screen.
  338. # Setting this to a high value allows you to scroll through the messages
  339. # using the 'hide_message' key. Setting it to zero means you'll have to
  340. # be quick to see any message at all. Any new messages will queued up
  341. # and displayed after the current message's linger time expires.
  342. #MessageLingerTime = 3
  343.  
  344. # Does MOC display a prefix on delayed messages indicating
  345. # the number of queued messages still to be displayed?
  346. #PrefixQueuedMessages = yes
  347.  
  348. # String to append to the queued message count if any
  349. # error messages are still waiting to be displayed.
  350. #ErrorMessagesQueued = "!"
  351.  
  352. # Enable oversampling (yes/no).
  353. #ModPlug_Oversampling = yes
  354. # Enable noise reduction (yes/no).
  355. #ModPlug_NoiseReduction = yes
  356. # Enable reverb (yes/no).
  357. #ModPlug_Reverb = no
  358. # Enable mega-bass (yes/no).
  359. #ModPlug_MegaBass = no
  360. # Enable surround (yes/no).
  361. #ModPlug_Surround = no
  362. # Resampling mode. One of FIR/SPLINE/LINEAR/NEAREST:
  363. # FIR : 8 tap fir filter (extremely high quality).
  364. # SPLINE : Cubic spline interpolation (high quality).
  365. # LINEAR : Linear interpolation (fast, good quality).
  366. # NEAREST : No interpolation (very fast, extremely bad sound quality).
  367. #ModPlug_ResamplingMode = FIR
  368. # Number of channles (1 or 2).
  369. #ModPlug_Channels = 2
  370. # Bits per sample (8,16,32). 32 Bits seems to be buggy...
  371. #ModPlug_Bits = 16
  372. # Sampling rate (11025, 22050, 44100, 48000).
  373. #ModPlug_Frequency = 44100
  374. # Reverb level 0(quiet)-100(loud).
  375. #ModPlug_ReverbDepth = 0
  376. # Reverb delay in ms, usually 40-200ms.
  377. #ModPlug_ReverbDelay = 0
  378. # Bass level 0(quiet)-100(loud).
  379. #ModPlug_BassAmount = 0
  380. # Bass cutoff in Hz (10-100).
  381. #ModPlug_BassRange = 10
  382. # Surround level 0(quiet)-100(heavy).
  383. #ModPlug_SurroundDepth = 0
  384. # Surround delay in ms, usually 5-40ms.
  385. #ModPlug_SurroundDelay = 0
  386. # Number of times to loop. Zero prevents looping. -1 loops forever.
  387. #ModPlug_LoopCount = 0
  388.  
  389. #TiMidity-Options.
  390. # Rate must be in between 8000 and 48000.
  391. #TiMidity_Rate = 44100
  392. # Bitrate is 8 or 16.
  393. #TiMidity_Bits = 16
  394. # Channels is 1 or 2.
  395. #TiMidity_Channels = 2
  396. # Volume-Range is 0-800.
  397. #TiMidity_Volume = 100
  398. # You can setup a TiMidity-Config-File here.
  399. # Leave unset to use library defaults (/etc/timidity.cfg mostly).
  400. #TiMidity_Config =
  401.  
  402.  
  403. # SidPlay2-Options.
  404. # Default length of a song if not in database (seconds).
  405. #SidPlay2_DefaultSongLength = 180
  406. # Play at least a specific time if song is shorter (seconds).
  407. #SidPlay2_MinimumSongLength = 0
  408. # Set path to a HVSC-compatible database (if not set, database is disabled).
  409. #SidPlay2_Database
  410. # Sampling Frequency (4000-48000Hz).
  411. #SidPlay2_Frequency = 44100
  412. # Sampling Resolution (8/16).
  413. #SidPlay2_Bits = 16
  414. # Playback Mode:
  415. # "M": Mono (best for many SIDs).
  416. # "S": Stereo.
  417. # "L"/"R": Left / Right.
  418. #SidPlay2_PlayMode = "M"
  419. # Optimisation-level (0-2), 0 is best quality.
  420. #SidPlay2_Optimisation = 0
  421. # Use start-song information from SID (1) or start at first song (0).
  422. # Songs before the start-song won't be played.
  423. #SidPlay2_StartAtStart = 1
  424. # Play sub-tunes.
  425. #SidPlay2_PlaySubTunes = 1
  426.  
  427. # OnSongChange.
  428. # Specify the full path (i.e. no ~) of an executable to run.
  429. # Arguments will be passed, and you can use the following escapes:
  430. # %a artist
  431. # %r album
  432. # %f filename
  433. # %t title
  434. # %n track
  435. # %d file duration in XX:YY form
  436. # %D file duration, number of seconds
  437. #
  438. # No pipes/redirects can be used directly, but writing a shell
  439. # script can do the job.
  440. #
  441. # Example:
  442. #
  443. #OnSongChange = "/home/jack/.moc/myscript %a %r"
  444. OnSongChange = "/home/amd/.moc/OnSongChange.sh"
  445.  
  446. # OnStop.
  447. # Run the following command (full path, no arguments) when MOC changes state
  448. # to stopped (when user stopped playing or changes a song).
  449. #
  450. #OnStop = "/home/jack/.moc/myscript_on_stop"
  451. OnStop = "/home/amd/.moc/OnStop.sh"
  452.  
  453. # This options determines what song to play after finishing all the songs in
  454. # queue. Setting this to 'yes' causes MOC to play the song which follows the
  455. # song played before playing the queue. If set to 'no', MOC will play the song
  456. # after the last song in the queue if it was in the playlist. The default is
  457. # 'yes' because this is the way other players usually behave. (Note that this
  458. # option previously took the values 1 and 0; these are now deprecated in
  459. # favour of 'yes' and 'no'.)
  460. #QueueNextSongReturn = yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement