From ef7c1605a027b52bbff1b01ea693b60f53fa3a71 Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Thu, 8 May 2025 14:01:37 +0200 Subject: initial commit --- monitor-current-track | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 monitor-current-track (limited to 'monitor-current-track') diff --git a/monitor-current-track b/monitor-current-track new file mode 100755 index 0000000..6bee462 --- /dev/null +++ b/monitor-current-track @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +tput civis +cleanup() { + tput cnorm +} + +trap cleanup EXIT +while true; do + now-playing + mpc status "%currenttime% / %totaltime%" + echo + mpc status -f '' | sed -n 3p + # mpc idle >/dev/null + sleep 0.3s +done -- cgit v1.2.3