literate-dotfiles/music.org

205 lines
4.1 KiB
Org Mode
Raw Normal View History

2019-12-30 17:22:22 +01:00
#+TITLE: Music/Sound Configuration
2020-01-11 22:04:28 +01:00
:DRAWER:
#+STARTUP: overview
#+LANGUAGE: en
#+EMAIL: dehaeze.thomas@gmail.com
#+AUTHOR: Dehaeze Thomas
#+HTML_LINK_HOME: ./index.html
#+HTML_LINK_UP: ./index.html
2020-01-11 22:24:51 +01:00
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
2020-01-11 22:04:28 +01:00
:END:
2019-12-30 17:22:22 +01:00
* Pavu Control
:PROPERTIES:
:header-args: :tangle ~/.config/pavucontrol.ini
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[window]
width=500
height=400
sinkInputType=1
sourceOutputType=1
sinkType=0
sourceType=1
showVolumeMeters=1
#+END_SRC
2019-01-31 09:41:03 +01:00
* NCMPCPP
https://rybczak.net/ncmpcpp/
Cheatsheet: https://pkgbuild.com/~jelle/ncmpcpp/
** Config
: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.
#+begin_src conf
2019-05-16 21:13:08 +02:00
ncmpcpp_directory = ~/.config/ncmpcpp
#+end_src
2019-01-31 09:41:03 +01:00
2020-03-01 21:38:01 +01:00
MPD Configuration.
#+begin_src conf
mpd_host = localhost
2019-05-16 21:13:08 +02:00
mpd_port = 6600
mpd_music_dir = ~/Music
#+end_src
2019-05-16 21:13:08 +02:00
2020-03-01 21:38:01 +01:00
Notification of song change.
#+begin_src conf
execute_on_song_change = dunstify --replace=19845 "Now Playing ♫" "$(mpc current)"
#+end_src
2019-01-31 09:41:03 +01:00
** Bindings
:PROPERTIES:
:header-args:conf: :tangle ~/.config/ncmpcpp/bindings
:header-args:conf+: :comments none :mkdirp yes
:END:
2019-01-31 09:41:03 +01:00
2019-03-05 22:03:53 +01:00
#+begin_src conf
def_key "q"
run_external_command "if [ $TMUX ]; then tmux detach; fi"
def_key "Q"
quit
2019-03-05 22:03:53 +01:00
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-03-05 22:03:53 +01:00
#+end_src
2019-01-31 09:41:03 +01:00
* Beets
:PROPERTIES:
:header-args:conf: :tangle ~/.config/beets/config.yaml
:header-args:conf+: :comments both :mkdirp yes
:END:
2019-01-31 09:41:03 +01:00
http://beets.io/
#+begin_src conf
directory: ~/Music
library: ~/Music/musiclibrary.db
2020-03-01 21:38:01 +01:00
art_filename: cover
import:
move: yes
2020-03-01 21:38:01 +01:00
plugins: fromfilename discogs
#+end_src
* Mopidy
:PROPERTIES:
:header-args:conf: :tangle ~/.config/mopidy/mopidy.conf
:header-args:conf+: :comments none :mkdirp yes :noweb no-export
:END:
#+begin_src conf
[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
2019-01-31 09:41:03 +01:00
2020-11-03 11:33:34 +01:00
[jellyfin]
hostname = https://jellyfin.tdehaeze.xyz/
username = tdehaeze
password = <<get-password(passname="music.tdehaeze.xyz/tdehaeze")>>
libraries = Music
albumartistsort = True
album_format = {ProductionYear} - {Name}
2020-03-01 21:38:01 +01:00
[file]
enabled = true
media_dirs = /home/thomas/Music
excluded_file_extensions =
2020-11-03 11:33:34 +01:00
.db
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
#+end_src
2019-06-22 18:52:58 +02:00
2019-05-30 16:23:27 +02:00
* Radio with curseradio
:PROPERTIES:
:header-args:conf: :tangle ~/.config/curseradio/curseradio.cfg
:header-args:conf+: :comments none :mkdirp yes
:END:
2019-05-30 16:23:27 +02:00
#+begin_src conf
[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
#+end_src