Skip to content

Instantly share code, notes, and snippets.

View return215's full-sized avatar
🎯
Focusing on recovery...

Muhammad Hidayat return215

🎯
Focusing on recovery...
View GitHub Profile
@Donearm
Donearm / mpd-ttytter_now_playing.sh
Last active September 2, 2021 09:27
Script to capture info on currently playing song in MPD, add an (optional) prefix and/or suffix and tweet it all via TTYtter
#!/bin/sh
# Script to capture info on currently playing song in MPD, add an
# (optional) prefix and/or suffix and tweet it all via TTYtter (which
# must be of course already been configured)
#
# Dependencies: TTYtter, a MPD client that can output song info (I use
# ncmpcpp)
PREFIX='on air: ' # what should go before the now playing string