[Conky] Fix date display when YYYY-MM-DD format

This commit is contained in:
Gregory Trolliet 2020-09-10 10:29:25 +02:00
parent 401c53b183
commit 10fafaa470

View file

@ -131,11 +131,10 @@ ${downspeedgraph enp0s31f6 25,160 99cc33 006600}$alignr${upspeedgraph enp0s31f6
${color0}${font sans-serif:bold:size=8}MUSIC ${hr 2}$color ${color0}${font sans-serif:bold:size=8}MUSIC ${hr 2}$color
$font${if_running cmus}${exec cmus-remote -Q 2>/dev/null | grep 'tag artist ' | cut -d " " -f 3-} $alignr ${exec ~/.config/conky/cmus-country.sh} $font${if_running cmus}${exec cmus-remote -Q 2>/dev/null | grep 'tag artist ' | cut -d " " -f 3-} $alignr ${exec ~/.config/conky/cmus-country.sh}
${scroll wait 53 3 1 ${exec cmus-remote -Q 2>/dev/null | grep 'tag genre ' | cut -d " " -f 3-}} ${scroll wait 53 3 1 ${exec cmus-remote -Q 2>/dev/null | grep 'tag genre ' | cut -d " " -f 3-}}
${exec cmus-remote -Q 2>/dev/null | grep 'date' | cut -d " " -f 3-} - ${exec cmus-remote -Q 2>/dev/null | grep 'tag album ' | cut -d " " -f 3-} ${exec cmus-remote -Q 2>/dev/null | grep ' date' | cut -d " " -f 3 | cut -d "-" -f 1} - ${exec cmus-remote -Q 2>/dev/null | grep 'tag album ' | cut -d " " -f 3-}
${exec cmus-remote -Q | grep tracknumber | cut -d " " -f 3}. ${exec cmus-remote -Q 2>/dev/null | grep 'title' | cut -d " " -f 3-} ${exec cmus-remote -Q | grep tracknumber | cut -d " " -f 3}. ${exec cmus-remote -Q 2>/dev/null | grep 'title' | cut -d " " -f 3-}
${execbar ~/.config/conky/cmus-conky-timebar.sh}${color white} ${execbar ~/.config/conky/cmus-conky-timebar.sh}${color white}
${alignc}${exec cmus-remote -Q | grep 'position'| awk '{print strftime("%M:%S", $2, 1)}'} / ${exec cmus-remote -Q | grep 'duration' | awk '{print strftime("%M:%S", $2, 1)}'} ${alignc}${exec cmus-remote -Q | grep 'position'| awk '{print strftime("%M:%S", $2, 1)}'} / ${exec cmus-remote -Q | grep 'duration' | awk '{print strftime("%M:%S", $2, 1)}'}
${else}$alignc Nothing is playing at the moment. ${else}$alignc Nothing is playing at the moment.
${endif} ${endif}
${color DimGray}${execi 120 fortune -a -n 500 -s | fold -s -w54}$color
]] ]]