text/gemini; lang=en
# Re: TUI music players
=> gemini://envs.net/~vitorg/gemlog/2022_01_14-why-tui-music-players-suck.gmi 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:
```Code
grep -v '^ *#' /etc/mpd.conf > /tmp/uncommented-copy-of-mpd.conf
```
To also get rid of blank lines, here’s one way:
```Code
grep -v '^ *#' /etc/mpd.conf | grep -v '^$' > /tmp/uncommented-copy-of-mpd.conf
```
This content has been proxied by September (3851b).