upd
This commit is contained in:
parent
176034c8a6
commit
f726918df8
69
bin/conkyctl
69
bin/conkyctl
@ -405,6 +405,7 @@ languages () {
|
|||||||
APPLY_TO_ALL="Zastosuj do wszystkich"
|
APPLY_TO_ALL="Zastosuj do wszystkich"
|
||||||
NEWTHEME="Nowy motyw kolorów..."
|
NEWTHEME="Nowy motyw kolorów..."
|
||||||
SAVENEWTHEME="utwórz nowy motyw..."
|
SAVENEWTHEME="utwórz nowy motyw..."
|
||||||
|
SAVE_CURRSCHEME="Zapisz aktualną kolorystykę jako..."
|
||||||
LIGHTBG="Jasne tło"
|
LIGHTBG="Jasne tło"
|
||||||
DARKBG="Ciemne tło"
|
DARKBG="Ciemne tło"
|
||||||
RESETCOLORS="Przywróć domyślne kolory"
|
RESETCOLORS="Przywróć domyślne kolory"
|
||||||
@ -470,6 +471,7 @@ languages () {
|
|||||||
APPLY_TO_ALL="Apply to All"
|
APPLY_TO_ALL="Apply to All"
|
||||||
NEWTHEME="New Color scheme..."
|
NEWTHEME="New Color scheme..."
|
||||||
SAVENEWTHEME="from current colors..."
|
SAVENEWTHEME="from current colors..."
|
||||||
|
SAVE_CURRSCHEME="Save current colors as..."
|
||||||
LIGHTBG="Light Background"
|
LIGHTBG="Light Background"
|
||||||
DARKBG="Dark Background"
|
DARKBG="Dark Background"
|
||||||
RESETCOLORS="Restore default colors"
|
RESETCOLORS="Restore default colors"
|
||||||
@ -535,6 +537,7 @@ languages () {
|
|||||||
APPLY_TO_ALL="Apply to All"
|
APPLY_TO_ALL="Apply to All"
|
||||||
NEWTHEME="New Color scheme..."
|
NEWTHEME="New Color scheme..."
|
||||||
SAVENEWTHEME="from current colors..."
|
SAVENEWTHEME="from current colors..."
|
||||||
|
SAVE_CURRSCHEME="Save current colors as..."
|
||||||
LIGHTBG="Light Background"
|
LIGHTBG="Light Background"
|
||||||
DARKBG="Dark Background"
|
DARKBG="Dark Background"
|
||||||
RESETCOLORS="Restore default colors"
|
RESETCOLORS="Restore default colors"
|
||||||
@ -734,6 +737,39 @@ if [[ "$OLD_SYNTAX" = "true" ]];then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
out+=("^sep($COLORS)")
|
out+=("^sep($COLORS)")
|
||||||
|
# COLOR SCHEMES
|
||||||
|
if [ "$WINTRANS" == false ];then
|
||||||
|
out+=("<span bgcolor='#282828'> <span fgcolor='#ebdbb2'></span> <span fgcolor='#98971a'></span> <span fgcolor='#d79921'></span> <span fgcolor='#cc241d'></span> </span> $COLORSCHEME,^checkout(regensingle)")
|
||||||
|
out2+=("^tag(regensingle)")
|
||||||
|
|
||||||
|
out2+=("^sep($APPLY_THEME)")
|
||||||
|
out2+=("^sep($SYSTEM_SCHEMES)")
|
||||||
|
n=1
|
||||||
|
while IFS="|" read -r winclr clr clr0 clr1 clr2 scheme_name
|
||||||
|
do
|
||||||
|
((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 sys $n ${1}")
|
||||||
|
done < <(tail -n +2 "$SYSSCHEMES")
|
||||||
|
out2+=("^sep($YOUR_SCHEMES)")
|
||||||
|
if [[ "$1" =~ "sysinfo_" ]]; then
|
||||||
|
currcolors="${WINCLR}|${CLR}|${CLR0}|${CLR1}|${CLR2}|"
|
||||||
|
out2+=("<big></big> $SAVE_CURRSCHEME,conkyctl savescheme '${currcolors}'" "^sep()")
|
||||||
|
fi
|
||||||
|
n=1
|
||||||
|
while IFS="|" read -r winclr clr clr0 clr1 clr2 scheme_name
|
||||||
|
do
|
||||||
|
((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+=("<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")
|
||||||
|
|
||||||
|
out2+=("^sep($GENFROMWP)")
|
||||||
|
out2+=("<big><span bgcolor='${w[-1]}' fgcolor='${w[0]}'> $LIGHTBG <span fgcolor='${w[4]}'></span> <span fgcolor='${w[5]}'></span> </span></big>,w2theme conkyone light ${1}")
|
||||||
|
out2+=("<big><span bgcolor='${w[0]}' fgcolor='${w[-1]}'> $DARKBG <span fgcolor='${w[-4]}'></span> <span fgcolor='${w[-5]}'></span> </span></big>,w2theme conkyone dark ${1}")
|
||||||
|
|
||||||
|
out+=("^sep()")
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$WINCLR" != "#" ]];then
|
if [[ "$WINCLR" != "#" ]];then
|
||||||
if [ "$WINTRANS" == false ];then
|
if [ "$WINTRANS" == false ];then
|
||||||
@ -756,39 +792,6 @@ if [[ "$OLD_SYNTAX" = "true" ]];then
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ "$WINTRANS" == false ];then
|
|
||||||
out+=("<span bgcolor='#282828'> <span fgcolor='#ebdbb2'></span> <span fgcolor='#98971a'></span> <span fgcolor='#d79921'></span> <span fgcolor='#cc241d'></span> </span> $COLORSCHEME,^checkout(regensingle)")
|
|
||||||
out2+=("^tag(regensingle)")
|
|
||||||
|
|
||||||
out2+=("^sep($APPLY_THEME)")
|
|
||||||
out2+=("^sep($SYSTEM_SCHEMES)")
|
|
||||||
n=1
|
|
||||||
while IFS="|" read -r winclr clr clr0 clr1 clr2 scheme_name
|
|
||||||
do
|
|
||||||
((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 sys $n ${1}")
|
|
||||||
done < <(tail -n +2 "$SYSSCHEMES")
|
|
||||||
|
|
||||||
out2+=("^sep($YOUR_SCHEMES)")
|
|
||||||
if [[ "$1" =~ "sysinfo_" ]]; then
|
|
||||||
currcolors="${WINCLR}|${CLR}|${CLR0}|${CLR1}|${CLR2}|"
|
|
||||||
out2+=("<big></big> $SAVE_CURRSCHEME,conkyctl savescheme '${currcolors}'")
|
|
||||||
fi
|
|
||||||
n=1
|
|
||||||
while IFS="|" read -r winclr clr clr0 clr1 clr2 scheme_name
|
|
||||||
do
|
|
||||||
((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}")
|
|
||||||
done < <(tail -n +2 "$USERSCHEMES")
|
|
||||||
|
|
||||||
out2+=("^sep($GENFROMWP)")
|
|
||||||
out2+=("<big><span bgcolor='${w[-1]}' fgcolor='${w[0]}'> $LIGHTBG <span fgcolor='${w[4]}'></span> <span fgcolor='${w[5]}'></span> </span></big>,w2theme conkyone light ${1}")
|
|
||||||
out2+=("<big><span bgcolor='${w[0]}' fgcolor='${w[-1]}'> $DARKBG <span fgcolor='${w[-4]}'></span> <span fgcolor='${w[-5]}'></span> </span></big>,w2theme conkyone dark ${1}")
|
|
||||||
|
|
||||||
out+=("^sep()")
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$1" != *"logo_mbcolor"* ]]; then
|
if [[ "$1" != *"logo_mbcolor"* ]]; then
|
||||||
if [[ "$1" != *"quoter_mbcolor"* ]]; then
|
if [[ "$1" != *"quoter_mbcolor"* ]]; then
|
||||||
out+=("<big></big> $FONTS [ <b><span font_family=\"${FONT}\">$FONT</span> $FONTSIZE</b> ],^checkout(fontsingle)")
|
out+=("<big></big> $FONTS [ <b><span font_family=\"${FONT}\">$FONT</span> $FONTSIZE</b> ],^checkout(fontsingle)")
|
||||||
|
Loading…
Reference in New Issue
Block a user