Compare commits

..

2 commits

2 changed files with 6 additions and 2 deletions

View file

@ -255,10 +255,14 @@ language+=([en]="English");
language+=([fr]="Français"); language+=([fr]="Français");
language+=([no]="Norsk"); language+=([no]="Norsk");
language+=([se]="Svenska"); language+=([se]="Svenska");
language+=([it]="Italiano");
if cmus-remote -Q &>/dev/null ; then if cmus-remote -Q &>/dev/null ; then
COMMENT=$( cmus-remote -Q | grep "tag comment " | cut -d " " -f 3- ) COMMENT=$( cmus-remote -Q | grep "tag comment " | cut -d " " -f 3- )
LANGUAGE=$( echo $COMMENT | sed 's/.*lang:\(.\{2\}\).*/\1/') LANGUAGE=$( echo $COMMENT | sed 's/.*lang:\(.\{2\}\).*/\1/')
if [ "$LANGUAGE" = "$COMMENT" ]; then
LANGUAGE="";
fi
COUNTRY=$( echo $COMMENT | sed 's/.*country:\(.\{2\}\).*/\1/') COUNTRY=$( echo $COMMENT | sed 's/.*country:\(.\{2\}\).*/\1/')
if [ ! -z "$LANGUAGE" ] && [ ! -z "$COUNTRY" ]; then if [ ! -z "$LANGUAGE" ] && [ ! -z "$COUNTRY" ]; then
echo "${language[$LANGUAGE]}, ${country[$COUNTRY]}" echo "${language[$LANGUAGE]}, ${country[$COUNTRY]}"

View file

@ -144,8 +144,8 @@ ${downspeedgraph enp0s31f6 25,160 99cc33 006600}$alignr${upspeedgraph enp0s31f6
#Credit to Reddit user: /u/Rioku_jk #Credit to Reddit user: /u/Rioku_jk
############################################## ##############################################
${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 cmus-remote -Q 2>/dev/null | grep 'tag genre ' | cut -d " " -f 3-} $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}
${exec ~/.config/conky/cmus-country.sh} ${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-} - ${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}