fix apply system scheme to one Conky

This commit is contained in:
Daniel Napora 2023-09-08 12:47:31 +02:00
parent 835004602a
commit 176034c8a6

View File

@ -767,10 +767,9 @@ if [[ "$OLD_SYNTAX" = "true" ]];then
while IFS="|" read -r winclr clr clr0 clr1 clr2 scheme_name while IFS="|" read -r winclr clr clr0 clr1 clr2 scheme_name
do do
((n=n+1)) ((n=n+1))
out2+=("<tt>$(printf '%-20s' "${scheme_name}")</tt><big><span bgcolor='$winclr'> <span fgcolor='${clr}'></span> <span fgcolor='${clr0}'></span> <span fgcolor='${clr1}'></span> <span fgcolor='${clr2}'></span> </span></big>,conkyctl applyscheme usr $n ${1}") out2+=("<tt>$(printf '%-20s' "${scheme_name}")</tt><big><span bgcolor='$winclr'> <span fgcolor='${clr}'></span> <span fgcolor='${clr0}'></span> <span fgcolor='${clr1}'></span> <span fgcolor='${clr2}'></span> </span></big>,conkyctl applyscheme sys $n ${1}")
#out2+=("<span bgcolor='$own_window_colour'> <span fgcolor='$default_color'></span> <span fgcolor='$color0'></span> <span fgcolor='$color1'></span> <span fgcolor='$color2'></span> </span> $schemetitle,conkyctl settheme $themefilename $1")
done < <(tail -n +2 "$SYSSCHEMES") done < <(tail -n +2 "$SYSSCHEMES")
out2+=("^sep($YOUR_SCHEMES)") out2+=("^sep($YOUR_SCHEMES)")
if [[ "$1" =~ "sysinfo_" ]]; then if [[ "$1" =~ "sysinfo_" ]]; then
currcolors="${WINCLR}|${CLR}|${CLR0}|${CLR1}|${CLR2}|" currcolors="${WINCLR}|${CLR}|${CLR0}|${CLR1}|${CLR2}|"
@ -781,8 +780,6 @@ if [[ "$OLD_SYNTAX" = "true" ]];then
do do
((n=n+1)) ((n=n+1))
out2+=("<tt>$(printf '%-20s' "${scheme_name}")</tt><big><span bgcolor='$winclr'> <span fgcolor='${clr}'></span> <span fgcolor='${clr0}'></span> <span fgcolor='${clr1}'></span> <span fgcolor='${clr2}'></span> </span></big>,conkyctl applyscheme usr $n ${1}") out2+=("<tt>$(printf '%-20s' "${scheme_name}")</tt><big><span bgcolor='$winclr'> <span fgcolor='${clr}'></span> <span fgcolor='${clr0}'></span> <span fgcolor='${clr1}'></span> <span fgcolor='${clr2}'></span> </span></big>,conkyctl applyscheme usr $n ${1}")
#out2+=("<span bgcolor='$own_window_colour'> <span fgcolor='$default_color'></span> <span fgcolor='$color0'></span> <span fgcolor='$color1'></span> <span fgcolor='$color2'></span> </span> $schemetitle,conkyctl settheme $themefilename $1")
done < <(tail -n +2 "$USERSCHEMES") done < <(tail -n +2 "$USERSCHEMES")
out2+=("^sep($GENFROMWP)") out2+=("^sep($GENFROMWP)")