change formatting
input examples are now given as ```bash input $ARG1 ``` While outputs use md's '> ' sign as a quote.
This commit is contained in:
64
sound/mpd.md
64
sound/mpd.md
@@ -8,45 +8,47 @@ tags: [ "Documentation", "Sound" ]
|
||||
|
||||
This is a minimum configuration file for /etc/mpd.conf
|
||||
|
||||
```
|
||||
|
||||
music_directory "/var/lib/mpd/music"
|
||||
> music_directory "/var/lib/mpd/music"
|
||||
>
|
||||
> playlist_directory "/var/lib/mpd/playlists"
|
||||
>
|
||||
> db_file "/var/lib/mpd/mpd.db"
|
||||
>
|
||||
>
|
||||
> pid_file "/run/mpd/mpd.pid"
|
||||
>
|
||||
> state_file "/var/lib/mpd/mpdstate"
|
||||
>
|
||||
>
|
||||
> user "mpd"
|
||||
>
|
||||
> audio_output {
|
||||
> type "pulse"
|
||||
> name "My Pulse Output"
|
||||
> }
|
||||
>
|
||||
> audio_output {
|
||||
> type "fifo"
|
||||
> name "my_fifo"
|
||||
> path "/tmp/mpd.fifo"
|
||||
> format "44100:16:2"
|
||||
> }
|
||||
|
||||
playlist_directory "/var/lib/mpd/playlists"
|
||||
|
||||
db_file "/var/lib/mpd/mpd.db"
|
||||
|
||||
|
||||
pid_file "/run/mpd/mpd.pid"
|
||||
|
||||
state_file "/var/lib/mpd/mpdstate"
|
||||
|
||||
|
||||
user "mpd"
|
||||
|
||||
audio_output {
|
||||
type "pulse"
|
||||
name "My Pulse Output"
|
||||
}
|
||||
|
||||
audio_output {
|
||||
type "fifo"
|
||||
name "my_fifo"
|
||||
path "/tmp/mpd.fifo"
|
||||
format "44100:16:2"
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
You can use alsa instead of pulse, but don't unless you're on a Pi.
|
||||
|
||||
Since this is run as the mpd user, you'll need to grant that user pulse acceess, often with the user-group `pulse` or `pulse-access`, but your distro may vary.
|
||||
|
||||
> sudo usermod -aG pulse-access mpd
|
||||
```bash
|
||||
sudo usermod -aG pulse-access mpd
|
||||
```
|
||||
|
||||
Working with mpd will be easier if you have access to its files, so maybe:
|
||||
|
||||
> sudo usermod -aG mpd $USER
|
||||
```bash
|
||||
sudo usermod -aG mpd $USER
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -54,5 +56,7 @@ Working with mpd will be easier if you have access to its files, so maybe:
|
||||
|
||||
Install `mpd-notification` and then start the service:
|
||||
|
||||
> systemctl --user enable mpd-notification
|
||||
```bash
|
||||
systemctl --user enable mpd-notification
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user