-- Leo's gemini proxy

-- Connecting to idiomdrottning.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; lang=en

Re: TUI music players


Vitorg has realized that TUI music players suck.


Yeah, that’s just facts. Most TUI things are bad. CLI is where it’s at. mpc, for example, is a good basis for shell scripts & automation. I love it. And since it’s for mpd, you can still connect it to a GUI or TUI app also, to get the best of both worlds.


He also thinks that a conf file full of comments, including commented-out defaults, is bad. That’s also a good point. With a good editor it’s easy to hide away all comments or to navigate a huge file, ostensibly making the advantages of having those comments outweigh the drawbacks, but not everyone has that and starting from a blank file can often be a lot easier.


Here is how to make a neater copy of your mpd.conf file:


grep -v '^ *#' /etc/mpd.conf > /tmp/uncommented-copy-of-mpd.conf

To also get rid of blank lines, here’s one way:


grep -v '^ *#' /etc/mpd.conf | grep -v '^$' > /tmp/uncommented-copy-of-mpd.conf

-- Response ended

-- Page fetched on Fri May 17 11:43:00 2024