Compare commits
2 commits
fc3fa44d05
...
5f194a817e
Author | SHA1 | Date | |
---|---|---|---|
5f194a817e | |||
2799bf6b93 |
2 changed files with 6 additions and 2 deletions
|
@ -255,10 +255,14 @@ language+=([en]="English");
|
|||
language+=([fr]="Français");
|
||||
language+=([no]="Norsk");
|
||||
language+=([se]="Svenska");
|
||||
language+=([it]="Italiano");
|
||||
|
||||
if cmus-remote -Q &>/dev/null ; then
|
||||
COMMENT=$( cmus-remote -Q | grep "tag comment " | cut -d " " -f 3- )
|
||||
LANGUAGE=$( echo $COMMENT | sed 's/.*lang:\(.\{2\}\).*/\1/')
|
||||
if [ "$LANGUAGE" = "$COMMENT" ]; then
|
||||
LANGUAGE="";
|
||||
fi
|
||||
COUNTRY=$( echo $COMMENT | sed 's/.*country:\(.\{2\}\).*/\1/')
|
||||
if [ ! -z "$LANGUAGE" ] && [ ! -z "$COUNTRY" ]; then
|
||||
echo "${language[$LANGUAGE]}, ${country[$COUNTRY]}"
|
||||
|
|
|
@ -144,8 +144,8 @@ ${downspeedgraph enp0s31f6 25,160 99cc33 006600}$alignr${upspeedgraph enp0s31f6
|
|||
#Credit to Reddit user: /u/Rioku_jk
|
||||
##############################################
|
||||
${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-}
|
||||
${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}
|
||||
${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 | 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}
|
||||
|
|
Loading…
Reference in a new issue