home/{mpd,ncmpcpp}: setup visualizer

This commit is contained in:
Oystein Kristoffer Tveit 2024-06-25 19:02:20 +02:00
parent 8568505299
commit b57028ef20
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 22 additions and 6 deletions

View File

@ -332,12 +332,12 @@
window_border_color = "green"; window_border_color = "green";
active_window_border = "red"; active_window_border = "red";
# visualizer_fifo_path = "/tmp/mpd.fifo"; visualizer_fifo_path = "/tmp/mpd.fifo";
# visualizer_output_name = "my_fifo"; visualizer_output_name = "Visualizer feed";
# visualizer_sync_interval = "30"; visualizer_sync_interval = "30";
# visualizer_in_stereo = "no"; visualizer_in_stereo = "no";
# visualizer_type = "spectrum"; # spectrum, ellipse, wave_filled, wave visualizer_type = "spectrum"; # spectrum, ellipse, wave_filled, wave
# visualizer_look = "+█"; # wave | spectrum, ellipse, wave_filled visualizer_look = "+"; # wave | spectrum, ellipse, wave_filled
}; };
}; };
} }

View File

@ -4,6 +4,22 @@
enable = true; enable = true;
musicDirectory = config.xdg.userDirs.music; musicDirectory = config.xdg.userDirs.music;
playlistDirectory = "${musicDirectory}/playlists/MPD"; playlistDirectory = "${musicDirectory}/playlists/MPD";
network.startWhenNeeded = true;
# TODO: make the path specific to the user unit
extraConfig = ''
audio_output {
type "fifo"
name "Visualizer feed"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
audio_output {
type "pulse"
name "PulseAudio"
}
'';
}; };
} }