2019-12-30 17:22:22 +01:00
|
|
|
#+TITLE: Music/Sound Configuration
|
2021-01-01 20:12:34 +01:00
|
|
|
#+SETUPFILE: ./setup/org-setup-file.org
|
2019-12-30 17:22:22 +01:00
|
|
|
|
2021-01-01 20:12:34 +01:00
|
|
|
* =pavucontrol= - Volume Control
|
2019-12-30 17:22:22 +01:00
|
|
|
:PROPERTIES:
|
|
|
|
:header-args: :tangle ~/.config/pavucontrol.ini
|
|
|
|
:header-args+: :comments both :mkdirp yes
|
2021-01-01 20:12:34 +01:00
|
|
|
:CUSTOM_ID: pavucontrol
|
2019-12-30 17:22:22 +01:00
|
|
|
:END:
|
|
|
|
|
|
|
|
#+BEGIN_SRC conf
|
2021-01-08 01:26:27 +01:00
|
|
|
[window]
|
|
|
|
width=500
|
|
|
|
height=400
|
|
|
|
sinkInputType=1
|
|
|
|
sourceOutputType=1
|
|
|
|
sinkType=0
|
|
|
|
sourceType=1
|
|
|
|
showVolumeMeters=1
|
2019-12-30 17:22:22 +01:00
|
|
|
#+END_SRC
|
2019-01-31 09:41:03 +01:00
|
|
|
|
2021-01-01 20:12:34 +01:00
|
|
|
* =mopidy= - Music Server
|
|
|
|
:PROPERTIES:
|
|
|
|
:header-args:conf: :tangle ~/.config/mopidy/mopidy.conf
|
|
|
|
:header-args:conf+: :comments none :mkdirp yes :noweb no-export
|
|
|
|
:CUSTOM_ID: mopidy
|
|
|
|
:END:
|
|
|
|
|
|
|
|
#+begin_src conf
|
2021-01-08 01:26:27 +01:00
|
|
|
[spotify]
|
|
|
|
username = dehaeze.thomas@gmail.com
|
|
|
|
password = <<get-password(passname="spotify.com/dehaeze.thomas@gmail.com")>>
|
|
|
|
client_id = 9dd02534-f038-46d8-946e-bfe72498204e
|
|
|
|
client_secret = <<get-password(passname="spotify/client_secret")>>
|
|
|
|
bitrate = 320
|
|
|
|
|
|
|
|
[mpd]
|
|
|
|
enabled = true
|
|
|
|
hostname = 127.0.0.1
|
|
|
|
port = 6600
|
|
|
|
password =
|
|
|
|
max_connections = 20
|
|
|
|
connection_timeout = 60
|
|
|
|
zeroconf = Mopidy MPD server on $hostname
|
|
|
|
command_blacklist = listall,listallinfo
|
|
|
|
default_playlist_scheme = m3u
|
|
|
|
|
|
|
|
[jellyfin]
|
2021-03-14 19:29:31 +01:00
|
|
|
hostname = https://jellyfin.tdehaeze.xyz
|
2021-01-08 01:26:27 +01:00
|
|
|
username = tdehaeze
|
|
|
|
password = <<get-password(passname="music.tdehaeze.xyz/tdehaeze")>>
|
|
|
|
libraries = Music
|
|
|
|
albumartistsort = True
|
|
|
|
album_format = {ProductionYear} - {Name}
|
2021-04-25 19:10:57 +02:00
|
|
|
max_bitrate = 10000
|
2021-01-08 01:26:27 +01:00
|
|
|
|
|
|
|
[file]
|
|
|
|
enabled = true
|
|
|
|
media_dirs = /home/thomas/Music
|
|
|
|
excluded_file_extensions =
|
|
|
|
.db
|
|
|
|
.directory
|
|
|
|
.html
|
|
|
|
.jpeg
|
|
|
|
.jpg
|
|
|
|
.log
|
|
|
|
.nfo
|
|
|
|
.pdf
|
|
|
|
.png
|
|
|
|
.txt
|
|
|
|
.zip
|
2021-01-01 20:12:34 +01:00
|
|
|
#+end_src
|
|
|
|
|
|
|
|
* =ncmpcpp= - Ncurses based MPD client
|
|
|
|
:PROPERTIES:
|
|
|
|
:CUSTOM_ID: ncmpcpp
|
|
|
|
:END:
|
|
|
|
|
2019-01-31 09:41:03 +01:00
|
|
|
https://rybczak.net/ncmpcpp/
|
|
|
|
Cheatsheet: https://pkgbuild.com/~jelle/ncmpcpp/
|
|
|
|
|
|
|
|
** Config
|
2020-01-11 23:30:28 +01:00
|
|
|
:PROPERTIES:
|
|
|
|
:header-args:conf: :tangle ~/.config/ncmpcpp/config
|
|
|
|
:header-args:conf+: :comments both :mkdirp yes
|
|
|
|
:END:
|
2019-01-31 09:41:03 +01:00
|
|
|
|
2020-03-01 21:38:01 +01:00
|
|
|
Configuration directory.
|
2020-01-28 21:28:38 +01:00
|
|
|
#+begin_src conf
|
2021-01-08 01:26:27 +01:00
|
|
|
ncmpcpp_directory = ~/.config/ncmpcpp
|
2020-01-28 21:28:38 +01:00
|
|
|
#+end_src
|
2019-01-31 09:41:03 +01:00
|
|
|
|
2020-03-01 21:38:01 +01:00
|
|
|
MPD Configuration.
|
2020-01-28 21:28:38 +01:00
|
|
|
#+begin_src conf
|
2021-01-08 01:26:27 +01:00
|
|
|
mpd_host = localhost
|
|
|
|
mpd_port = 6600
|
|
|
|
mpd_music_dir = ~/Music
|
2020-01-28 21:28:38 +01:00
|
|
|
#+end_src
|
2019-05-16 21:13:08 +02:00
|
|
|
|
2020-03-01 21:38:01 +01:00
|
|
|
Notification of song change.
|
2020-01-28 21:28:38 +01:00
|
|
|
#+begin_src conf
|
2021-01-08 01:26:27 +01:00
|
|
|
execute_on_song_change = dunstify --replace=19845 "Now Playing ♫" "$(mpc current)"
|
2020-01-28 21:28:38 +01:00
|
|
|
#+end_src
|
2019-01-31 09:41:03 +01:00
|
|
|
|
2020-12-09 22:15:30 +01:00
|
|
|
Better user interface
|
|
|
|
#+begin_src conf
|
2021-01-08 01:26:27 +01:00
|
|
|
user_interface = "alternative"
|
|
|
|
playlist_editor_display_mode = "columns"
|
|
|
|
search_engine_display_mode = "columns"
|
|
|
|
browser_display_mode = "columns"
|
|
|
|
playlist_display_mode = "columns"
|
2020-12-09 22:15:30 +01:00
|
|
|
#+end_src
|
|
|
|
|
|
|
|
Sorting by tracking number and then title
|
|
|
|
#+begin_src conf
|
2021-01-08 01:26:27 +01:00
|
|
|
browser_sort_mode = "format"
|
|
|
|
browser_sort_format = '{%n - %t}|{%t}'
|
2020-12-09 22:15:30 +01:00
|
|
|
#+end_src
|
|
|
|
|
|
|
|
#+begin_src conf
|
2021-01-08 01:26:27 +01:00
|
|
|
ask_before_clearing_playlists = "no"
|
2020-12-09 22:15:30 +01:00
|
|
|
#+end_src
|
|
|
|
|
2019-01-31 09:41:03 +01:00
|
|
|
** Bindings
|
2020-01-11 23:30:28 +01:00
|
|
|
:PROPERTIES:
|
|
|
|
:header-args:conf: :tangle ~/.config/ncmpcpp/bindings
|
|
|
|
:header-args:conf+: :comments none :mkdirp yes
|
|
|
|
:END:
|
2019-01-31 09:41:03 +01:00
|
|
|
|
2021-01-08 01:26:27 +01:00
|
|
|
#+begin_src conf
|
|
|
|
def_key "q"
|
|
|
|
run_external_command "sh -c 'if [ $TMUX ] ; then tmux detach; fi'"
|
|
|
|
def_key "Q"
|
|
|
|
quit
|
|
|
|
def_key "g"
|
|
|
|
move_home
|
|
|
|
def_key "G"
|
|
|
|
move_end
|
|
|
|
def_key "j"
|
|
|
|
scroll_down
|
|
|
|
def_key "k"
|
|
|
|
scroll_up
|
|
|
|
def_key "ctrl-u"
|
|
|
|
page_up
|
|
|
|
def_key "ctrl-d"
|
|
|
|
page_down
|
|
|
|
def_key "l"
|
|
|
|
enter_directory
|
|
|
|
def_key "h"
|
|
|
|
jump_to_parent_directory
|
|
|
|
def_key "."
|
|
|
|
show_lyrics
|
|
|
|
def_key "n"
|
|
|
|
next_found_item
|
|
|
|
def_key "N"
|
|
|
|
previous_found_item
|
|
|
|
def_key "J"
|
|
|
|
move_sort_order_down
|
|
|
|
def_key "K"
|
|
|
|
move_sort_order_up
|
|
|
|
def_key "d"
|
|
|
|
delete_playlist_items
|
|
|
|
def_key "+"
|
|
|
|
volume_up
|
|
|
|
def_key "-"
|
|
|
|
volume_down
|
2019-07-12 13:26:13 +02:00
|
|
|
|
2019-03-05 22:03:53 +01:00
|
|
|
#+end_src
|
|
|
|
|
2021-01-01 20:12:34 +01:00
|
|
|
* =beets= - Media library management
|
2020-01-11 23:30:28 +01:00
|
|
|
:PROPERTIES:
|
|
|
|
:header-args:conf: :tangle ~/.config/beets/config.yaml
|
|
|
|
:header-args:conf+: :comments both :mkdirp yes
|
2021-01-01 20:12:34 +01:00
|
|
|
:CUSTOM_ID: beets
|
2020-01-11 23:30:28 +01:00
|
|
|
:END:
|
2019-01-31 09:41:03 +01:00
|
|
|
http://beets.io/
|
|
|
|
|
2020-01-28 21:28:38 +01:00
|
|
|
#+begin_src conf
|
2021-01-08 01:26:27 +01:00
|
|
|
directory: ~/Music
|
|
|
|
library: ~/Music/musiclibrary.db
|
|
|
|
art_filename: cover
|
2019-03-26 12:09:14 +01:00
|
|
|
|
2021-01-08 01:26:27 +01:00
|
|
|
import:
|
|
|
|
move: yes
|
2020-03-01 21:38:01 +01:00
|
|
|
|
2021-01-08 01:26:27 +01:00
|
|
|
plugins: fromfilename discogs
|
2020-01-28 21:28:38 +01:00
|
|
|
#+end_src
|
|
|
|
|
2021-01-01 20:12:34 +01:00
|
|
|
* =curseradio= - Radio with curseradio
|
2020-01-11 23:30:28 +01:00
|
|
|
:PROPERTIES:
|
|
|
|
:header-args:conf: :tangle ~/.config/curseradio/curseradio.cfg
|
|
|
|
:header-args:conf+: :comments none :mkdirp yes
|
2021-01-01 20:12:34 +01:00
|
|
|
:CUSTOM_ID: curseradio
|
2020-01-11 23:30:28 +01:00
|
|
|
:END:
|
2021-01-01 20:12:34 +01:00
|
|
|
|
2019-05-30 16:23:27 +02:00
|
|
|
#+begin_src conf
|
2021-01-08 01:26:27 +01:00
|
|
|
[opml]
|
|
|
|
root = http://opml.radiotime.com/
|
|
|
|
|
|
|
|
[playback]
|
|
|
|
command = /usr/bin/mpv
|
|
|
|
|
|
|
|
[interface]
|
|
|
|
keymap = vi
|
|
|
|
|
|
|
|
[keymap.vi]
|
|
|
|
up = k
|
|
|
|
down = j
|
|
|
|
start = 0
|
|
|
|
end = $
|
|
|
|
pageup = u
|
|
|
|
pagedown = d
|
|
|
|
enter = l
|
|
|
|
stop = p
|
|
|
|
exit = q
|
|
|
|
favourite = f
|
2019-05-30 16:23:27 +02:00
|
|
|
#+end_src
|