Compare commits

..

No commits in common. "5f194a817e68b1b5ec76b071e5ddc8ba06ee6868" and "fc3fa44d050badfa9571aa455719d40b2082fa47" have entirely different histories.

2 changed files with 2 additions and 6 deletions

View file

@ -255,14 +255,10 @@ 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 ~/.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 cmus-remote -Q 2>/dev/null | grep 'tag genre ' | cut -d " " -f 3-}
${exec cmus-remote -Q 2>/dev/null | grep 'tag genre ' | cut -d " " -f 3-} ${exec ~/.config/conky/cmus-country.sh}
${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}