From cab7e6c4a562e12e1ee1418bb0b5705cce2d275f Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Tue, 19 May 2020 13:23:47 +0200 Subject: [PATCH] [CONKY] Fix the problem when there was the 'position' string in title --- .config/conky/cmus-conky-timebar.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/conky/cmus-conky-timebar.sh b/.config/conky/cmus-conky-timebar.sh index b1b4292..bd71ad5 100755 --- a/.config/conky/cmus-conky-timebar.sh +++ b/.config/conky/cmus-conky-timebar.sh @@ -6,8 +6,8 @@ ## Requires 'bc' for calculating percentage. if cmus-remote -Q &>/dev/null ; then - DUR=$( cmus-remote -Q | grep "duration" | cut -c10- ) - POS=$( cmus-remote -Q | grep "position" | cut -c10- ) + DUR=$( cmus-remote -Q | grep "duration " | cut -c10- ) + POS=$( cmus-remote -Q | grep "position " | cut -c10- ) echo "($POS/$DUR)*100" | bc -l fi