Layout refactor
Also included provisioning for htpc host
This commit is contained in:
parent
f90702c7b8
commit
970f7489fb
103 changed files with 782 additions and 893 deletions
40
templates/mpd/mpd.conf.j2
Normal file
40
templates/mpd/mpd.conf.j2
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# {{ ansible_managed }}
|
||||
#
|
||||
bind_to_address "{{ mpd_listen_address }}"
|
||||
port "{{ mpd_listen_port }}"
|
||||
|
||||
playlist_directory "{{ mpd_configuration_dir }}/playlists"
|
||||
state_file "{{ mpd_configuration_dir }}/state"
|
||||
|
||||
database {
|
||||
plugin "proxy"
|
||||
host "{{ mpd_remote_address }}"
|
||||
port "{{ mpd_remote_port }}"
|
||||
}
|
||||
|
||||
audio_output {
|
||||
name "mpd"
|
||||
type "pipewire"
|
||||
dsd "yes"
|
||||
}
|
||||
|
||||
audio_output {
|
||||
type "fifo"
|
||||
name "my_fifo"
|
||||
path "/tmp/mpd.fifo"
|
||||
}
|
||||
|
||||
input {
|
||||
enabled "no"
|
||||
plugin "tidal"
|
||||
}
|
||||
|
||||
input {
|
||||
enabled "no"
|
||||
plugin "qobuz"
|
||||
}
|
||||
|
||||
decoder {
|
||||
enabled "no"
|
||||
plugin "wildmidi"
|
||||
}
|
||||
32
templates/mpd/ncmpc.j2
Normal file
32
templates/mpd/ncmpc.j2
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
## {{ ansible_managed }}
|
||||
#
|
||||
##
|
||||
## Configuration file for ncmpc (~/.config/ncmpc/config)
|
||||
##
|
||||
|
||||
############## Connection ###################
|
||||
## Connect to mpd running on a specified host
|
||||
host = {{ mpd_remote_address }}
|
||||
|
||||
## Connect to mpd on the specified port.
|
||||
port = {{ mpd_remote_port }}
|
||||
|
||||
############## Theme ###################
|
||||
# Topbar
|
||||
color title = 0/254
|
||||
color line = 0/254
|
||||
|
||||
# Main window
|
||||
color background = 15
|
||||
color list = 239/15
|
||||
color browser-directory = 239/15
|
||||
color browser-playlist = 239/15
|
||||
|
||||
# Selected
|
||||
color list-bold = 147/255
|
||||
|
||||
# Bottombar
|
||||
color progressbar = 0
|
||||
color status-state = 0/255
|
||||
color status-song = 0/255
|
||||
color status-time = 0/255
|
||||
323
templates/mpd/ncmpcpp/bindings.j2
Normal file
323
templates/mpd/ncmpcpp/bindings.j2
Normal file
|
|
@ -0,0 +1,323 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
# enabled bindings
|
||||
def_key "a"
|
||||
add_item_to_playlist
|
||||
|
||||
def_key "l"
|
||||
jump_to_playing_song
|
||||
|
||||
def_key "l"
|
||||
next_column
|
||||
|
||||
def_key "h"
|
||||
previous_column
|
||||
|
||||
def_key "k"
|
||||
scroll_up
|
||||
|
||||
def_key "j"
|
||||
scroll_down
|
||||
|
||||
def_key "tab"
|
||||
next_screen
|
||||
|
||||
def_key "shift-tab"
|
||||
previous_screen
|
||||
|
||||
def_key "f1"
|
||||
show_help
|
||||
|
||||
def_key "1"
|
||||
show_playlist
|
||||
|
||||
def_key "2"
|
||||
show_browser
|
||||
|
||||
def_key "2"
|
||||
change_browse_mode
|
||||
|
||||
def_key "3"
|
||||
show_search_engine
|
||||
|
||||
def_key "3"
|
||||
reset_search_engine
|
||||
|
||||
def_key "4"
|
||||
show_media_library
|
||||
|
||||
def_key "4"
|
||||
toggle_media_library_columns_mode
|
||||
|
||||
def_key "5"
|
||||
show_playlist_editor
|
||||
|
||||
def_key "6"
|
||||
show_tag_editor
|
||||
|
||||
def_key "7"
|
||||
show_outputs
|
||||
|
||||
def_key "8"
|
||||
show_visualizer
|
||||
|
||||
def_key "["
|
||||
scroll_up_album
|
||||
|
||||
def_key "]"
|
||||
scroll_down_album
|
||||
|
||||
def_key "{"
|
||||
scroll_up_artist
|
||||
|
||||
def_key "}"
|
||||
scroll_down_artist
|
||||
|
||||
def_key "page_up"
|
||||
page_up
|
||||
|
||||
def_key "page_down"
|
||||
page_down
|
||||
|
||||
def_key "home"
|
||||
move_home
|
||||
|
||||
def_key "end"
|
||||
move_end
|
||||
|
||||
def_key "enter"
|
||||
enter_directory
|
||||
|
||||
def_key "enter"
|
||||
toggle_output
|
||||
|
||||
def_key "enter"
|
||||
run_action
|
||||
|
||||
def_key "enter"
|
||||
play_item
|
||||
|
||||
def_key "delete"
|
||||
delete_playlist_items
|
||||
|
||||
def_key "delete"
|
||||
delete_browser_items
|
||||
|
||||
def_key "delete"
|
||||
delete_stored_playlist
|
||||
|
||||
def_key "s"
|
||||
stop
|
||||
|
||||
def_key "p"
|
||||
pause
|
||||
|
||||
def_key ">"
|
||||
next
|
||||
|
||||
def_key "<"
|
||||
previous
|
||||
|
||||
def_key "ctrl-h"
|
||||
replay_song
|
||||
|
||||
def_key "f"
|
||||
seek_forward
|
||||
|
||||
def_key "b"
|
||||
seek_backward
|
||||
|
||||
def_key "ctrl-r"
|
||||
toggle_repeat
|
||||
|
||||
def_key "ctrl-z"
|
||||
toggle_random
|
||||
|
||||
def_key "ctrl-s"
|
||||
toggle_single
|
||||
|
||||
def_key "u"
|
||||
update_database
|
||||
|
||||
def_key "/"
|
||||
find_item_forward
|
||||
find
|
||||
|
||||
def_key "q"
|
||||
quit
|
||||
|
||||
def_key "v"
|
||||
select_range
|
||||
|
||||
def_key "c"
|
||||
remove_selection
|
||||
|
||||
def_key "C"
|
||||
clear_playlist
|
||||
|
||||
|
||||
# default dummy bindings
|
||||
def_key "mouse"
|
||||
dummy
|
||||
|
||||
def_key "up"
|
||||
dummy
|
||||
|
||||
def_key "shift-up"
|
||||
dummy
|
||||
|
||||
def_key "down"
|
||||
dummy
|
||||
|
||||
def_key "shift-down"
|
||||
dummy
|
||||
|
||||
def_key "insert"
|
||||
dummy
|
||||
|
||||
def_key "space"
|
||||
dummy
|
||||
|
||||
def_key "right"
|
||||
dummy
|
||||
|
||||
def_key "+"
|
||||
dummy
|
||||
|
||||
def_key "left"
|
||||
dummy
|
||||
|
||||
def_key "-"
|
||||
dummy
|
||||
|
||||
def_key ":"
|
||||
dummy
|
||||
|
||||
def_key "="
|
||||
dummy
|
||||
|
||||
def_key "@"
|
||||
dummy
|
||||
|
||||
def_key "backspace"
|
||||
dummy
|
||||
|
||||
def_key "y"
|
||||
dummy
|
||||
|
||||
def_key "R"
|
||||
dummy
|
||||
|
||||
def_key "Y"
|
||||
dummy
|
||||
|
||||
def_key "T"
|
||||
dummy
|
||||
|
||||
def_key "|"
|
||||
dummy
|
||||
|
||||
def_key "#"
|
||||
dummy
|
||||
|
||||
def_key "Z"
|
||||
dummy
|
||||
|
||||
def_key "x"
|
||||
dummy
|
||||
|
||||
def_key "X"
|
||||
dummy
|
||||
|
||||
def_key "ctrl-f"
|
||||
dummy
|
||||
|
||||
def_key "ctrl-_"
|
||||
dummy
|
||||
|
||||
def_key "?"
|
||||
dummy
|
||||
|
||||
def_key "."
|
||||
dummy
|
||||
|
||||
def_key ","
|
||||
dummy
|
||||
|
||||
def_key "w"
|
||||
dummy
|
||||
|
||||
def_key "e"
|
||||
dummy
|
||||
|
||||
def_key "i"
|
||||
dummy
|
||||
|
||||
def_key "I"
|
||||
dummy
|
||||
|
||||
def_key "g"
|
||||
dummy
|
||||
|
||||
def_key "ctrl-v"
|
||||
dummy
|
||||
|
||||
def_key "B"
|
||||
dummy
|
||||
|
||||
def_key "m"
|
||||
dummy
|
||||
|
||||
def_key "n"
|
||||
dummy
|
||||
|
||||
def_key "M"
|
||||
dummy
|
||||
|
||||
def_key "A"
|
||||
dummy
|
||||
|
||||
def_key "S"
|
||||
dummy
|
||||
|
||||
def_key "o"
|
||||
dummy
|
||||
|
||||
def_key "G"
|
||||
dummy
|
||||
|
||||
def_key "~"
|
||||
dummy
|
||||
|
||||
def_key "E"
|
||||
dummy
|
||||
|
||||
def_key "U"
|
||||
dummy
|
||||
|
||||
def_key "P"
|
||||
dummy
|
||||
|
||||
def_key "\\"
|
||||
dummy
|
||||
|
||||
def_key "!"
|
||||
dummy
|
||||
|
||||
def_key "L"
|
||||
dummy
|
||||
|
||||
def_key "F"
|
||||
dummy
|
||||
|
||||
def_key "alt-l"
|
||||
dummy
|
||||
|
||||
def_key "ctrl-l"
|
||||
dummy
|
||||
|
||||
def_key "`"
|
||||
dummy
|
||||
|
||||
def_key "ctrl-p"
|
||||
dummy
|
||||
42
templates/mpd/ncmpcpp/config.j2
Normal file
42
templates/mpd/ncmpcpp/config.j2
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# {{ ansible_managed }}
|
||||
#
|
||||
|
||||
############## Connection ###################
|
||||
## Connect to mpd running on a specified host
|
||||
mpd_host = {{ mpd_remote_address }}
|
||||
|
||||
## Connect to mpd on the specified port.
|
||||
mpd_port = {{ mpd_remote_port }}
|
||||
|
||||
# header_visibility = yes
|
||||
# playlist_show_mpd_host = yes
|
||||
# titles_visibility = yes
|
||||
# enable_window_title = yes
|
||||
|
||||
|
||||
connected_message_on_startup = no
|
||||
|
||||
display_bitrate = yes
|
||||
|
||||
visualizer_data_source = "/tmp/mpd.fifo"
|
||||
visualizer_output_name = "my_fifo"
|
||||
visualizer_in_stereo = "yes"
|
||||
visualizer_type = "spectrum"
|
||||
visualizer_look = "+|"
|
||||
|
||||
############## Theme ###################
|
||||
|
||||
user_interface = classic
|
||||
|
||||
song_columns_list_format = "(40)[9]{t|f} (25)[245]{a} (25)[245]{b} (25)[245]{l}"
|
||||
song_list_format = "{$5 %a$9 $1│$9 $8%t$9 }|{ $8%f$9}$R{$5%b $7}"
|
||||
|
||||
# Column Names
|
||||
header_window_color = 1
|
||||
|
||||
# Main window
|
||||
main_window_color = 1
|
||||
|
||||
# Bottombar
|
||||
progressbar_color = 1
|
||||
player_state_color = 1
|
||||
13
templates/mpd/service.j2
Normal file
13
templates/mpd/service.j2
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# {{ ansible_managed }}
|
||||
#
|
||||
|
||||
[Unit]
|
||||
Description=Music Player Daemon
|
||||
Documentation=man:mpd(1) man:mpd.conf(5)
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=/usr/bin/mpd --systemd
|
||||
Restart=on-failure
|
||||
RestartSec=15s
|
||||
TimeoutStopSec=3
|
||||
12
templates/mpd/socket.j2
Normal file
12
templates/mpd/socket.j2
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# {{ ansible_managed }}
|
||||
#
|
||||
|
||||
[Socket]
|
||||
ListenStream=/run/user/1000/mpd.socket
|
||||
ListenStream={{ mpd_listen_port }}
|
||||
Backlog=5
|
||||
KeepAlive=true
|
||||
PassCredentials=true
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue