Update music config (mopidy, ncmpcpp)

This commit is contained in:
2026-03-09 09:27:31 +01:00
parent d8208d3390
commit a6e4629965

View File

@@ -1,23 +1,7 @@
#+TITLE: Music/Sound Configuration #+TITLE: Music/Sound Configuration
#+SETUPFILE: ./setup/org-setup-file.org #+SETUPFILE: ./setup/org-setup-file.org
* =pavucontrol= - Volume Control * =pwvucontrol= - Volume Control for Pipewire
:PROPERTIES:
:header-args: :tangle ~/.config/pavucontrol.ini
:header-args+: :comments both :mkdirp yes
:CUSTOM_ID: pavucontrol
:END:
#+BEGIN_SRC conf
[window]
width=500
height=400
sinkInputType=1
sourceOutputType=1
sinkType=0
sourceType=1
showVolumeMeters=1
#+END_SRC
* =mopidy= - Music Server * =mopidy= - Music Server
:PROPERTIES: :PROPERTIES:
@@ -26,14 +10,43 @@ showVolumeMeters=1
:CUSTOM_ID: mopidy :CUSTOM_ID: mopidy
:END: :END:
Things done to get mopidy to work:
#+begin_src bash :eval no :tangle no
cd ~/.local/soft/
git clone git@github.com:jellyfin/mopidy-jellyfin.git && cd mopidy-jellyfin
python -m venv env --system-site-packages
env/bin/python setup.py develop
env/bin/pip install mopidy-mpd
#+end_src
To run mopidy:
#+begin_src bash :eval no :tangle no
~/.local/soft/mopidy-jellyfin/env/bin/mopidy
#+end_src
#+begin_src conf #+begin_src conf
[core]
cache_dir = ~/.cache/mopidy
config_dir = ~/.config/mopidy
data_dir = ~/.local/data/mopidy
[audio]
output = queue2 max-size-buffers=20000 max-size-time=0 max-size-bytes=0 ! audioconvert ! pulsesink
[stream]
enabled = true
protocols =
http
https
timeout = 30000
[mpd] [mpd]
enabled = true enabled = true
hostname = 127.0.0.1 hostname = 127.0.0.1
port = 6600 port = 6600
password = password =
max_connections = 20 max_connections = 20
connection_timeout = 30 connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname zeroconf = Mopidy MPD server on $hostname
command_blacklist = listall,listallinfo command_blacklist = listall,listallinfo
default_playlist_scheme = m3u default_playlist_scheme = m3u
@@ -45,23 +58,14 @@ password = <<get-password(passname="music.tdehaeze.xyz/tdehaeze")>>
libraries = Music libraries = Music
albumartistsort = True albumartistsort = True
album_format = {ProductionYear} - {Name} album_format = {ProductionYear} - {Name}
max_bitrate = 10000
[file] [file]
enabled = false enabled = false
media_dirs = /home/thomas/Music
excluded_file_extensions = [logging]
.db verbosity = 4
.directory format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s
.html color = true
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
#+end_src #+end_src
* =ncmpcpp= - Ncurses based MPD client * =ncmpcpp= - Ncurses based MPD client
@@ -163,6 +167,4 @@ def_key "+"
volume_up volume_up
def_key "-" def_key "-"
volume_down volume_down
#+end_src #+end_src