458 lines
17 KiB
HTML
458 lines
17 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
|
<head>
|
|
<!-- 2020-03-19 jeu. 10:39 -->
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Music/Sound Configuration</title>
|
|
<meta name="generator" content="Org mode" />
|
|
<meta name="author" content="Dehaeze Thomas" />
|
|
<style type="text/css">
|
|
<!--/*--><![CDATA[/*><!--*/
|
|
.title { text-align: center;
|
|
margin-bottom: .2em; }
|
|
.subtitle { text-align: center;
|
|
font-size: medium;
|
|
font-weight: bold;
|
|
margin-top:0; }
|
|
.todo { font-family: monospace; color: red; }
|
|
.done { font-family: monospace; color: green; }
|
|
.priority { font-family: monospace; color: orange; }
|
|
.tag { background-color: #eee; font-family: monospace;
|
|
padding: 2px; font-size: 80%; font-weight: normal; }
|
|
.timestamp { color: #bebebe; }
|
|
.timestamp-kwd { color: #5f9ea0; }
|
|
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
|
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
|
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
|
.underline { text-decoration: underline; }
|
|
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
|
p.verse { margin-left: 3%; }
|
|
pre {
|
|
border: 1px solid #ccc;
|
|
box-shadow: 3px 3px 3px #eee;
|
|
padding: 8pt;
|
|
font-family: monospace;
|
|
overflow: auto;
|
|
margin: 1.2em;
|
|
}
|
|
pre.src {
|
|
position: relative;
|
|
overflow: visible;
|
|
padding-top: 1.2em;
|
|
}
|
|
pre.src:before {
|
|
display: none;
|
|
position: absolute;
|
|
background-color: white;
|
|
top: -10px;
|
|
right: 10px;
|
|
padding: 3px;
|
|
border: 1px solid black;
|
|
}
|
|
pre.src:hover:before { display: inline;}
|
|
/* Languages per Org manual */
|
|
pre.src-asymptote:before { content: 'Asymptote'; }
|
|
pre.src-awk:before { content: 'Awk'; }
|
|
pre.src-C:before { content: 'C'; }
|
|
/* pre.src-C++ doesn't work in CSS */
|
|
pre.src-clojure:before { content: 'Clojure'; }
|
|
pre.src-css:before { content: 'CSS'; }
|
|
pre.src-D:before { content: 'D'; }
|
|
pre.src-ditaa:before { content: 'ditaa'; }
|
|
pre.src-dot:before { content: 'Graphviz'; }
|
|
pre.src-calc:before { content: 'Emacs Calc'; }
|
|
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
|
pre.src-fortran:before { content: 'Fortran'; }
|
|
pre.src-gnuplot:before { content: 'gnuplot'; }
|
|
pre.src-haskell:before { content: 'Haskell'; }
|
|
pre.src-hledger:before { content: 'hledger'; }
|
|
pre.src-java:before { content: 'Java'; }
|
|
pre.src-js:before { content: 'Javascript'; }
|
|
pre.src-latex:before { content: 'LaTeX'; }
|
|
pre.src-ledger:before { content: 'Ledger'; }
|
|
pre.src-lisp:before { content: 'Lisp'; }
|
|
pre.src-lilypond:before { content: 'Lilypond'; }
|
|
pre.src-lua:before { content: 'Lua'; }
|
|
pre.src-matlab:before { content: 'MATLAB'; }
|
|
pre.src-mscgen:before { content: 'Mscgen'; }
|
|
pre.src-ocaml:before { content: 'Objective Caml'; }
|
|
pre.src-octave:before { content: 'Octave'; }
|
|
pre.src-org:before { content: 'Org mode'; }
|
|
pre.src-oz:before { content: 'OZ'; }
|
|
pre.src-plantuml:before { content: 'Plantuml'; }
|
|
pre.src-processing:before { content: 'Processing.js'; }
|
|
pre.src-python:before { content: 'Python'; }
|
|
pre.src-R:before { content: 'R'; }
|
|
pre.src-ruby:before { content: 'Ruby'; }
|
|
pre.src-sass:before { content: 'Sass'; }
|
|
pre.src-scheme:before { content: 'Scheme'; }
|
|
pre.src-screen:before { content: 'Gnu Screen'; }
|
|
pre.src-sed:before { content: 'Sed'; }
|
|
pre.src-sh:before { content: 'shell'; }
|
|
pre.src-sql:before { content: 'SQL'; }
|
|
pre.src-sqlite:before { content: 'SQLite'; }
|
|
/* additional languages in org.el's org-babel-load-languages alist */
|
|
pre.src-forth:before { content: 'Forth'; }
|
|
pre.src-io:before { content: 'IO'; }
|
|
pre.src-J:before { content: 'J'; }
|
|
pre.src-makefile:before { content: 'Makefile'; }
|
|
pre.src-maxima:before { content: 'Maxima'; }
|
|
pre.src-perl:before { content: 'Perl'; }
|
|
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
|
pre.src-scala:before { content: 'Scala'; }
|
|
pre.src-shell:before { content: 'Shell Script'; }
|
|
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
|
/* additional language identifiers per "defun org-babel-execute"
|
|
in ob-*.el */
|
|
pre.src-cpp:before { content: 'C++'; }
|
|
pre.src-abc:before { content: 'ABC'; }
|
|
pre.src-coq:before { content: 'Coq'; }
|
|
pre.src-groovy:before { content: 'Groovy'; }
|
|
/* additional language identifiers from org-babel-shell-names in
|
|
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
|
the execution function name together. */
|
|
pre.src-bash:before { content: 'bash'; }
|
|
pre.src-csh:before { content: 'csh'; }
|
|
pre.src-ash:before { content: 'ash'; }
|
|
pre.src-dash:before { content: 'dash'; }
|
|
pre.src-ksh:before { content: 'ksh'; }
|
|
pre.src-mksh:before { content: 'mksh'; }
|
|
pre.src-posh:before { content: 'posh'; }
|
|
/* Additional Emacs modes also supported by the LaTeX listings package */
|
|
pre.src-ada:before { content: 'Ada'; }
|
|
pre.src-asm:before { content: 'Assembler'; }
|
|
pre.src-caml:before { content: 'Caml'; }
|
|
pre.src-delphi:before { content: 'Delphi'; }
|
|
pre.src-html:before { content: 'HTML'; }
|
|
pre.src-idl:before { content: 'IDL'; }
|
|
pre.src-mercury:before { content: 'Mercury'; }
|
|
pre.src-metapost:before { content: 'MetaPost'; }
|
|
pre.src-modula-2:before { content: 'Modula-2'; }
|
|
pre.src-pascal:before { content: 'Pascal'; }
|
|
pre.src-ps:before { content: 'PostScript'; }
|
|
pre.src-prolog:before { content: 'Prolog'; }
|
|
pre.src-simula:before { content: 'Simula'; }
|
|
pre.src-tcl:before { content: 'tcl'; }
|
|
pre.src-tex:before { content: 'TeX'; }
|
|
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
|
pre.src-verilog:before { content: 'Verilog'; }
|
|
pre.src-vhdl:before { content: 'VHDL'; }
|
|
pre.src-xml:before { content: 'XML'; }
|
|
pre.src-nxml:before { content: 'XML'; }
|
|
/* add a generic configuration mode; LaTeX export needs an additional
|
|
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
|
pre.src-conf:before { content: 'Configuration File'; }
|
|
|
|
table { border-collapse:collapse; }
|
|
caption.t-above { caption-side: top; }
|
|
caption.t-bottom { caption-side: bottom; }
|
|
td, th { vertical-align:top; }
|
|
th.org-right { text-align: center; }
|
|
th.org-left { text-align: center; }
|
|
th.org-center { text-align: center; }
|
|
td.org-right { text-align: right; }
|
|
td.org-left { text-align: left; }
|
|
td.org-center { text-align: center; }
|
|
dt { font-weight: bold; }
|
|
.footpara { display: inline; }
|
|
.footdef { margin-bottom: 1em; }
|
|
.figure { padding: 1em; }
|
|
.figure p { text-align: center; }
|
|
.equation-container {
|
|
display: table;
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
.equation {
|
|
vertical-align: middle;
|
|
}
|
|
.equation-label {
|
|
display: table-cell;
|
|
text-align: right;
|
|
vertical-align: middle;
|
|
}
|
|
.inlinetask {
|
|
padding: 10px;
|
|
border: 2px solid gray;
|
|
margin: 10px;
|
|
background: #ffffcc;
|
|
}
|
|
#org-div-home-and-up
|
|
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
|
textarea { overflow-x: auto; }
|
|
.linenr { font-size: smaller }
|
|
.code-highlighted { background-color: #ffff00; }
|
|
.org-info-js_info-navigation { border-style: none; }
|
|
#org-info-js_console-label
|
|
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
|
.org-info-js_search-highlight
|
|
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
|
.org-svg { width: 90%; }
|
|
/*]]>*/-->
|
|
</style>
|
|
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
|
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
|
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
|
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
|
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
|
<script type="text/javascript" src="./js/readtheorg.js"></script>
|
|
<script type="text/javascript">
|
|
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
|
<!--/*--><![CDATA[/*><!--*/
|
|
function CodeHighlightOn(elem, id)
|
|
{
|
|
var target = document.getElementById(id);
|
|
if(null != target) {
|
|
elem.cacheClassElem = elem.className;
|
|
elem.cacheClassTarget = target.className;
|
|
target.className = "code-highlighted";
|
|
elem.className = "code-highlighted";
|
|
}
|
|
}
|
|
function CodeHighlightOff(elem, id)
|
|
{
|
|
var target = document.getElementById(id);
|
|
if(elem.cacheClassElem)
|
|
elem.className = elem.cacheClassElem;
|
|
if(elem.cacheClassTarget)
|
|
target.className = elem.cacheClassTarget;
|
|
}
|
|
/*]]>*///-->
|
|
// @license-end
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="org-div-home-and-up">
|
|
<a accesskey="h" href="./index.html"> UP </a>
|
|
|
|
|
<a accesskey="H" href="./index.html"> HOME </a>
|
|
</div><div id="content">
|
|
<h1 class="title">Music/Sound Configuration</h1>
|
|
<div id="table-of-contents">
|
|
<h2>Table of Contents</h2>
|
|
<div id="text-table-of-contents">
|
|
<ul>
|
|
<li><a href="#org1984a25">Pavu Control</a></li>
|
|
<li><a href="#orga2274a9">NCMPCPP</a>
|
|
<ul>
|
|
<li><a href="#orgc496501">Config</a></li>
|
|
<li><a href="#orgef62173">Bindings</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#org4ad4c04">Beets</a></li>
|
|
<li><a href="#org887303a">Mopidy</a></li>
|
|
<li><a href="#org6b37adb">Radio with curseradio</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org1984a25" class="outline-2">
|
|
<h2 id="org1984a25">Pavu Control</h2>
|
|
<div class="outline-text-2" id="text-org1984a25">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">[<span class="org-type">window</span>]
|
|
<span class="org-variable-name">width</span>=<span class="org-highlight-numbers-number">500</span>
|
|
<span class="org-variable-name">height</span>=<span class="org-highlight-numbers-number">400</span>
|
|
<span class="org-variable-name">sinkInputType</span>=<span class="org-highlight-numbers-number">1</span>
|
|
<span class="org-variable-name">sourceOutputType</span>=<span class="org-highlight-numbers-number">1</span>
|
|
<span class="org-variable-name">sinkType</span>=<span class="org-highlight-numbers-number">0</span>
|
|
<span class="org-variable-name">sourceType</span>=<span class="org-highlight-numbers-number">1</span>
|
|
<span class="org-variable-name">showVolumeMeters</span>=<span class="org-highlight-numbers-number">1</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orga2274a9" class="outline-2">
|
|
<h2 id="orga2274a9">NCMPCPP</h2>
|
|
<div class="outline-text-2" id="text-orga2274a9">
|
|
<p>
|
|
<a href="https://rybczak.net/ncmpcpp/">https://rybczak.net/ncmpcpp/</a>
|
|
Cheatsheet: <a href="https://pkgbuild.com/~jelle/ncmpcpp/">https://pkgbuild.com/~jelle/ncmpcpp/</a>
|
|
</p>
|
|
</div>
|
|
|
|
<div id="outline-container-orgc496501" class="outline-3">
|
|
<h3 id="orgc496501">Config</h3>
|
|
<div class="outline-text-3" id="text-orgc496501">
|
|
<p>
|
|
Configuration directory.
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf"><span class="org-variable-name">ncmpcpp_directory</span> = ~/.config/ncmpcpp
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
MPD Configuration.
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf"><span class="org-variable-name">mpd_host</span> = localhost
|
|
<span class="org-variable-name">mpd_port</span> = <span class="org-highlight-numbers-number">6600</span>
|
|
<span class="org-variable-name">mpd_music_dir</span> = ~/Music
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
Notification of song change.
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf"><span class="org-variable-name">execute_on_song_change</span> = dunstify --replace=<span class="org-highlight-numbers-number">19845</span> <span class="org-string">"Now Playing ♫"</span> <span class="org-string">"$(mpc current)"</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgef62173" class="outline-3">
|
|
<h3 id="orgef62173">Bindings</h3>
|
|
<div class="outline-text-3" id="text-orgef62173">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">def_key <span class="org-string">"q"</span>
|
|
run_external_command <span class="org-string">"if [ $TMUX ]; then tmux detach; fi"</span>
|
|
def_key <span class="org-string">"Q"</span>
|
|
quit
|
|
def_key <span class="org-string">"g"</span>
|
|
move_home
|
|
def_key <span class="org-string">"G"</span>
|
|
move_end
|
|
def_key <span class="org-string">"j"</span>
|
|
scroll_down
|
|
def_key <span class="org-string">"k"</span>
|
|
scroll_up
|
|
def_key <span class="org-string">"ctrl-u"</span>
|
|
page_up
|
|
def_key <span class="org-string">"ctrl-d"</span>
|
|
page_down
|
|
def_key <span class="org-string">"l"</span>
|
|
enter_directory
|
|
def_key <span class="org-string">"h"</span>
|
|
jump_to_parent_directory
|
|
def_key <span class="org-string">"."</span>
|
|
show_lyrics
|
|
def_key <span class="org-string">"n"</span>
|
|
next_found_item
|
|
def_key <span class="org-string">"N"</span>
|
|
previous_found_item
|
|
def_key <span class="org-string">"J"</span>
|
|
move_sort_order_down
|
|
def_key <span class="org-string">"K"</span>
|
|
move_sort_order_up
|
|
def_key <span class="org-string">"d"</span>
|
|
delete_playlist_items
|
|
def_key <span class="org-string">"+"</span>
|
|
volume_up
|
|
def_key <span class="org-string">"-"</span>
|
|
volume_down
|
|
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org4ad4c04" class="outline-2">
|
|
<h2 id="org4ad4c04">Beets</h2>
|
|
<div class="outline-text-2" id="text-org4ad4c04">
|
|
<p>
|
|
<a href="http://beets.io/">http://beets.io/</a>
|
|
</p>
|
|
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">directory: ~/Music
|
|
library: ~/Music/musiclibrary.db
|
|
art_filename: cover
|
|
|
|
import:
|
|
move: yes
|
|
|
|
plugins: fromfilename discogs
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org887303a" class="outline-2">
|
|
<h2 id="org887303a">Mopidy</h2>
|
|
<div class="outline-text-2" id="text-org887303a">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">[<span class="org-type">spotify</span>]
|
|
<span class="org-variable-name">username</span> = dehaeze.thomas@gmail.com
|
|
<span class="org-variable-name">password</span> = <<get-password(passname=<span class="org-string">"spotify.com/dehaeze.thomas@gmail.com"</span>)>>
|
|
<span class="org-variable-name">client_id</span> = 9dd02534-f038-46d8-946e-bfe72498204e
|
|
<span class="org-variable-name">client_secret</span> = <<get-password(passname=<span class="org-string">"spotify/client_secret"</span>)>>
|
|
<span class="org-variable-name">bitrate</span> = <span class="org-highlight-numbers-number">320</span>
|
|
|
|
[<span class="org-type">mpd</span>]
|
|
<span class="org-variable-name">enabled</span> = true
|
|
<span class="org-variable-name">hostname</span> = 127.0.0.1
|
|
<span class="org-variable-name">port</span> = <span class="org-highlight-numbers-number">6600</span>
|
|
<span class="org-variable-name">password</span> =
|
|
<span class="org-variable-name">max_connections</span> = <span class="org-highlight-numbers-number">20</span>
|
|
<span class="org-variable-name">connection_timeout</span> = <span class="org-highlight-numbers-number">60</span>
|
|
<span class="org-variable-name">zeroconf</span> = Mopidy MPD server on $hostname
|
|
<span class="org-variable-name">command_blacklist</span> = listall,listallinfo
|
|
<span class="org-variable-name">default_playlist_scheme</span> = m3u
|
|
|
|
[<span class="org-type">file</span>]
|
|
<span class="org-variable-name">enabled</span> = true
|
|
<span class="org-variable-name">media_dirs</span> = /home/thomas/Music
|
|
<span class="org-variable-name">excluded_file_extensions</span> =
|
|
.db
|
|
.directory
|
|
.html
|
|
.jpeg
|
|
.jpg
|
|
.log
|
|
.nfo
|
|
.pdf
|
|
.png
|
|
.txt
|
|
.zip
|
|
|
|
[<span class="org-type">audio</span>]
|
|
<span class="org-variable-name">output</span> = tee name=t t. ! queue ! autoaudiosink t. ! queue ! audioresample ! audioconvert ! audio/x-raw,rate=<span class="org-highlight-numbers-number">44100</span>,channels=<span class="org-highlight-numbers-number">2</span>,format=S16LE ! wavenc ! filesink location=/tmp/mpd.fifo
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org6b37adb" class="outline-2">
|
|
<h2 id="org6b37adb">Radio with curseradio</h2>
|
|
<div class="outline-text-2" id="text-org6b37adb">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">[<span class="org-type">opml</span>]
|
|
<span class="org-variable-name">root</span> = http://opml.radiotime.com/
|
|
|
|
[<span class="org-type">playback</span>]
|
|
<span class="org-variable-name">command</span> = /usr/bin/mpv
|
|
|
|
[<span class="org-type">interface</span>]
|
|
<span class="org-variable-name">keymap</span> = vi
|
|
|
|
[<span class="org-type">keymap.vi</span>]
|
|
<span class="org-variable-name">up</span> = k
|
|
<span class="org-variable-name">down</span> = j
|
|
<span class="org-variable-name">start</span> = <span class="org-highlight-numbers-number">0</span>
|
|
<span class="org-variable-name">end</span> = $
|
|
<span class="org-variable-name">pageup</span> = u
|
|
<span class="org-variable-name">pagedown</span> = d
|
|
<span class="org-variable-name">enter</span> = l
|
|
<span class="org-variable-name">stop</span> = p
|
|
<span class="org-variable-name">exit</span> = q
|
|
<span class="org-variable-name">favourite</span> = f
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="postamble" class="status">
|
|
<p class="author">Author: Dehaeze Thomas</p>
|
|
<p class="date">Created: 2020-03-19 jeu. 10:39</p>
|
|
</div>
|
|
</body>
|
|
</html>
|