diff --git a/hypr/scripts/track-time.fish b/hypr/scripts/track-time.fish index 7f2dc4c..21adc7f 100755 --- a/hypr/scripts/track-time.fish +++ b/hypr/scripts/track-time.fish @@ -7,4 +7,4 @@ end set -l position (caelestia shell mpris getActive position) set -l length (caelestia shell mpris getActive length) -test $position != 'No media' && echo "$(fmt-time $position)/$(fmt-time $length)" +test $position != 'No media' -a $position != 'No active player' && echo "$(fmt-time $position)/$(fmt-time $length)"