#!/bin/bash TTIME=$(playerctl metadata | grep length | awk '{print $3}') printf "%d:%02d\n" $(( $TTIME / 60000000 )) $(( ($TTIME / 1000000) % 60 ))