mirror of
https://github.com/kastdeur/dotfiles.git
synced 2025-05-14 20:09:26 +02:00
Introduced mpDris2 client for local MPD
This commit is contained in:
parent
10189191f7
commit
0ca7a16d52
5 changed files with 61 additions and 20 deletions
18
mpd/mpDris2.conf
Normal file
18
mpd/mpDris2.conf
Normal file
|
@ -0,0 +1,18 @@
|
|||
# mpDris2 Configuration
|
||||
# Default values are commented out
|
||||
|
||||
[Connection]
|
||||
# You can also export $MPD_HOST and/or $MPD_PORT to change the server.
|
||||
host = ~/.config/mpd/socket
|
||||
#port = 6600
|
||||
#password =
|
||||
|
||||
[Library]
|
||||
music_dir = ~/Music
|
||||
cover_regex = ^(album|cover|\.?folder|front).*\.(gif|jpeg|jpg|png)$
|
||||
|
||||
[Bling]
|
||||
mmkeys = True
|
||||
notify = False
|
||||
# Urgency of the notification: 0 for low, 1 for medium and 2 for high.
|
||||
#notify_urgency = 0
|
13
mpd/mpDris2.service
Normal file
13
mpd/mpDris2.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=mpDris2 - Music Player Daemon D-Bus bridge
|
||||
Wants=mpd.service
|
||||
After=mpd.service
|
||||
Requires=dbus.service
|
||||
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
ExecStart=/usr/bin/mpDris2
|
||||
BusName=org.mpris.MediaPlayer2.mpd
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
38
mpd/mpd.conf
38
mpd/mpd.conf
|
@ -1,16 +1,20 @@
|
|||
|
||||
# INET binding
|
||||
bind_to_address "localhost"
|
||||
port "6600"
|
||||
pid_file "~/.config/mpd/pid"
|
||||
state_file "~/.config/mpd/mpdstate"
|
||||
playlist_directory "~/.config/mpd/playlists"
|
||||
sticker_file "~/.config/mpd/sticker.sql"
|
||||
log_file "~/.config/mpd/log"
|
||||
|
||||
# UNIX binding
|
||||
bind_to_address "~/.mpd/socket"
|
||||
bind_to_address "~/.config/mpd/socket"
|
||||
|
||||
# INET binding
|
||||
#bind_to_address "localhost"
|
||||
#port "6600"
|
||||
|
||||
|
||||
# Select one of the two options
|
||||
## Use Local database
|
||||
db_file "~/.mpd/database"
|
||||
music_directory "~/Music"
|
||||
|
||||
# Select one of the two options below
|
||||
|
||||
## Use Remote Database and Files
|
||||
#database {
|
||||
|
@ -18,16 +22,20 @@ music_directory "~/Music"
|
|||
# host "remote"
|
||||
# port "6600"
|
||||
#}
|
||||
#music_directory "smb://remote"
|
||||
|
||||
### Use Local database
|
||||
#db_file "~/.config/mpd/database"
|
||||
#music_directory "~/Music"
|
||||
|
||||
pid_file "~/.mpd/pid"
|
||||
state_file "~/.mpd/mpdstate"
|
||||
playlist_directory "~/.mpd/playlists"
|
||||
sticker_file "~/.mpd/sticker.sql"
|
||||
log_file "~/.mpd/log"
|
||||
|
||||
# Enable Neighbour plugins
|
||||
neighbors {
|
||||
plugin "smbclient"
|
||||
}
|
||||
|
||||
|
||||
# Audio Outputs
|
||||
## Audio Outputs
|
||||
audio_output {
|
||||
type "pulse"
|
||||
name "User Pulse Audio"
|
||||
|
@ -38,6 +46,6 @@ audio_output {
|
|||
audio_output {
|
||||
type "fifo"
|
||||
name "my_fifo"
|
||||
path "/tmp/mpd.fifo"
|
||||
path "~/.config/mpd/mpd.fifo"
|
||||
format "44100:16:2"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue