parent
dfc7192e8a
commit
3d2c5eefb1
357
bin/colorizer
357
bin/colorizer
|
@ -23,28 +23,12 @@ CUSTOM_COMMANDS_FILE="$CNF_DIR/custom.csv"
|
|||
|
||||
if [ ! -f $CNF_FILE ]; then
|
||||
cat <<EOF > ${CNF_FILE}
|
||||
# Autogenerate color themes on wallpaper change? yes or no
|
||||
wall2themes=no
|
||||
# OB window decoration preferred color style: dark, light or none
|
||||
wall2themes_ob=light
|
||||
# conky preffered bg color dark, light or none (none = not generate/change colorscheme)
|
||||
wall2themes_conky=dark
|
||||
# Menu prefferred bg color dark, light or none (not generate/change colorscheme)
|
||||
wall2themes_menu=light
|
||||
# Accent color dark, light or none
|
||||
wall2themes_accent=dark
|
||||
# PyRadio preferred bg color dark, light or none (not generate/change colorscheme)
|
||||
wall2themes_pyradio=dark
|
||||
# User wallpaper dir
|
||||
user_wallpapers_dir=~/wallpapers
|
||||
# Show related tools (show or hide)
|
||||
related_tools=hide
|
||||
# Colorizer size: full or compact
|
||||
colorizer_size=full
|
||||
# Action for rootmenucolors: accent or select
|
||||
rootcolors=select
|
||||
# Different colors for each/some Conkys: yes or no
|
||||
conky_diff_colors=no
|
||||
# Gradients: change openbox theme? (active window titlebar)
|
||||
gradient_obtheme=yes
|
||||
# Gradients: change menu/panels background?
|
||||
|
@ -68,31 +52,6 @@ case "$LANG" in
|
|||
COLORIZER_CONKY="<b>Conky</b> Manager i Colorizer"
|
||||
CAVA="Cava - wizualizacja dźwięku"
|
||||
TERMINALTHEME="Motyw terminala"
|
||||
WALLCOLORS="Kolory z tapety"
|
||||
ACCENTINFO="<i>ustaw kolor akcentu...</i>"
|
||||
SELECT_ACTION="<i>wybierz działanie...</i>"
|
||||
COLOR="Kolor"
|
||||
SETACCENT="Ustaw kolor akcentu"
|
||||
ACTIVE_WIN="<i>aktywne okno...</i>"
|
||||
OB_ACTIVE_BG="Tło paska tytułowego"
|
||||
OB_ACTIVE_BGTO="Tło paska tytułowego 2 <i>(dla gradientu)</i>"
|
||||
OB_ACTIVE_TEXT="Tytuł aktywnego okna"
|
||||
OB_ACTIVE_BORDER="Obramowanie"
|
||||
INACTIVE_WIN="<i>nieaktywne okno...</i>"
|
||||
OB_INACTIVE_BG="Tło paska tytułowego"
|
||||
OB_INACTIVE_BGTO="Tło paska tytułowego 2 <i>(dla gradientu)</i>"
|
||||
OB_INACTIVE_TEXT="Tytuł nieaktywnego okna"
|
||||
OB_INACTIVE_BORDER="Obramowanie"
|
||||
CONKY_BGCOLOR_ALL="Kolor tła (wszystkie)"
|
||||
RUNNING_CONKYS="<i>działające Conky...</i>"
|
||||
BGCOLOR_OF="Kolor tła dla"
|
||||
MENU_BGCOLOR="Kolor tła menu"
|
||||
MENU_SEP_BG="Kolor tła separatora/nagłówka"
|
||||
MENU_ACTIVE_BG="Kolor aktywnej pozycji (akcent)"
|
||||
MENU_ITEM_FG="Kolor elementu menu"
|
||||
MENU_BORDER="Kolor obramowania menu"
|
||||
|
||||
ACCENT_COLORS="Popularne kolory akcentu"
|
||||
EDIT_PALETTE="Edytuj paletę kolorów"
|
||||
RANDWALL="Ustaw losową tapetę"
|
||||
SYSWALLPAPER="Tapety <b>systemowe</b>"
|
||||
|
@ -105,13 +64,7 @@ case "$LANG" in
|
|||
SETTINGS_AND_HELP="Pomoc i Ustawienia"
|
||||
SETTINGS="Ustawienia"
|
||||
COLORIZER_SETTINGS="Ustawienia Colorizera"
|
||||
AUTOGEN_THEMES="Autogenerowanie motywów?"
|
||||
GENERATETHEMES="Generować motywy po zmianie tapety?"
|
||||
GENOB="Pokolorować Dekoracje Okien?"
|
||||
GENMENU="Pokolorować menu i panele?"
|
||||
GENCONKY="Pokolorować Conky?"
|
||||
GENPYRADIO="Pokolorować PyRadio?"
|
||||
GRADIENTS_ACT="Działanie gradientów w menu gł."
|
||||
GRADIENTS_ACT="Działanie gradientów w menu gł."
|
||||
EDITCONF="Edytuj plik konfiguracyjny"
|
||||
RESET="Resetuj ustawienia Colorizera"
|
||||
YES="Tak"
|
||||
|
@ -139,10 +92,6 @@ case "$LANG" in
|
|||
CHANGE="Zmień"
|
||||
USERDIR_NOT_EXIST="kalalog nie istnieje"
|
||||
CREATE_USERDIR="Utwórz katalog"
|
||||
ROOTMENU_COLORS_ACTION="Akcja dla kolorów w menu głównym"
|
||||
ACCENT="<b>accent</b> - zmień kolor akcentu"
|
||||
SELECT="<b>select</b> - wybierz akcję..."
|
||||
DIFF_CONKY_COLORS="Różne kolory dla Conky"
|
||||
HELP="Okno główne i Pomoc"
|
||||
RESET_COLORS="Resetuj kolory"
|
||||
RESET_CHOOSE="Resetuj..."
|
||||
|
@ -166,31 +115,6 @@ case "$LANG" in
|
|||
COLORIZER_CONKY="<b>Conky</b> Manager & Colorizer"
|
||||
CAVA="Cava - Audio Visualizer"
|
||||
TERMINALTHEME="Terminal color scheme"
|
||||
WALLCOLORS="Wallpaper Colors"
|
||||
ACCENTINFO="<i>click to set accent color</i>"
|
||||
SELECT_ACTION="<i>select action...</i>"
|
||||
COLOR="Color"
|
||||
SETACCENT="Set accent color"
|
||||
ACTIVE_WIN="<i>active window...</i>"
|
||||
OB_ACTIVE_BG="Background"
|
||||
OB_ACTIVE_BGTO="Background 2 <i>(for gradients)</i>"
|
||||
OB_ACTIVE_TEXT="Title text color"
|
||||
OB_ACTIVE_BORDER="Border"
|
||||
INACTIVE_WIN="<i>inactive window...</i>"
|
||||
OB_INACTIVE_BG="Background"
|
||||
OB_INACTIVE_BGTO="Background 2 <i>(for gradients)</i>"
|
||||
OB_INACTIVE_TEXT="Title text color"
|
||||
OB_INACTIVE_BORDER="Border"
|
||||
CONKY_BGCOLOR_ALL="Background color (all)"
|
||||
RUNNING_CONKYS="<i>running Conkys...</i>"
|
||||
BGCOLOR_OF="Background color for"
|
||||
MENU_BGCOLOR="Menu Background"
|
||||
MENU_SEP_BG="Separator/Title Background"
|
||||
MENU_ACTIVE_BG="Active item Background (accent)"
|
||||
MENU_ITEM_FG="Item Foreground"
|
||||
MENU_BORDER="Menu Border Color"
|
||||
ACCENT_COLORS="Popular accent colors"
|
||||
EDIT_PALETTE="Edit color palette"
|
||||
RANDWALL="Set random wallpaper"
|
||||
SYSWALLPAPER="<b>System</b> Wallpapers"
|
||||
USERWALLPAPER="<b>User</b> Wallpapers"
|
||||
|
@ -202,12 +126,6 @@ case "$LANG" in
|
|||
SETTINGS_AND_HELP="Settings and Help"
|
||||
SETTINGS="Settings"
|
||||
COLORIZER_SETTINGS="Colorizer Settings"
|
||||
AUTOGEN_THEMES="Autogenerate themes?"
|
||||
GENERATETHEMES="Generate themes on wallpaper change?"
|
||||
GENOB="Colorize Window Decorations?"
|
||||
GENMENU="Colorize Menus and Panels?"
|
||||
GENCONKY="Colorize Conky?"
|
||||
GENPYRADIO="Colorize PyRadio?"
|
||||
GRADIENTS_ACT="Gradients in Rootmenu actions"
|
||||
EDITCONF="Edit config file"
|
||||
RESET="Reset to defaults"
|
||||
|
@ -226,7 +144,7 @@ case "$LANG" in
|
|||
SHOW="show"
|
||||
HIDE="hide"
|
||||
EDIT_RELATED="Edit related tools"
|
||||
RESET_RELATED="Restet related tools"
|
||||
RESET_RELATED="Reset related tools"
|
||||
LXAPPEARANCE="GTK theme and icons"
|
||||
THEMEMANAGER="Theme manager"
|
||||
WALLPAPERS="Wallpapers directories"
|
||||
|
@ -236,9 +154,6 @@ case "$LANG" in
|
|||
CHANGE="Change"
|
||||
USERDIR_NOT_EXIST="directory does not exist"
|
||||
CREATE_USERDIR="Create directory"
|
||||
ROOTMENU_COLORS_ACTION="Rootmenu Colors Action"
|
||||
ACCENT="<b>accent</b> - change accent color"
|
||||
SELECT="<b>select</b> - select action from submenu"
|
||||
DIFF_CONKY_COLORS="Different colors for each Conky"
|
||||
HELP="Main Window and Help"
|
||||
RESET_COLORS="Reset Colors"
|
||||
|
@ -316,205 +231,6 @@ out+=("$CAVA,colorizer-cava -s")
|
|||
#fi
|
||||
|
||||
|
||||
out+=("^sep($WALLCOLORS)")
|
||||
out+=("北 $REGENERATE,^checkout(regen)")
|
||||
out2+=("^tag(regen)")
|
||||
out2+=("^sep($REGENERATEALL)")
|
||||
out2+=(" $ASCONFIGURED,w2theme colorize;colorizer -s")
|
||||
out2+=(" $REVERSE,w2theme reverse;colorizer -s")
|
||||
#out2+=("^sep($CURRENTCONF)")
|
||||
#out2+=("$MENUPANELS [ <b>${wall2themes_menu}</b> ],^checkout(mp)")
|
||||
#out2+=("Conky [ <b>${wall2themes_conky}</b> ],^checkout(conky)")
|
||||
#out2+=("PyRadio [ <b>${wall2themes_pyradio}</b> ],^checkout(pyradio)")
|
||||
|
||||
[[ $rootcolors = select ]]&& out+=("^sep($SELECT_ACTION)")||out+=("^sep($ACCENTINFO)")
|
||||
n=0
|
||||
for i in "${w[@]}"
|
||||
do
|
||||
if [ $rootcolors = select ];then
|
||||
((n+=1))
|
||||
out+=("<tt><small>$i</small> <span bgcolor='$i'> </span></tt>,^checkout(${i:1}${n}")
|
||||
out2+=("^tag(${i:1}${n})")
|
||||
out2+=("^sep(<tt>$COLOR <span bgcolor='$i'> </span> <small>$i</small> <span bgcolor='$i'> </span></tt>)")
|
||||
out2+=("$SETACCENT,w2theme accent '${i}';colorizer -s")
|
||||
out2+=("^sep(<big>OpenBox</big>)")
|
||||
out2+=("^sep(<small>$ACTIVE_WIN</small>)")
|
||||
out2+=("$OB_ACTIVE_BG,obtctl clractivebg '${i}';colorizer -s")
|
||||
out2+=("$OB_ACTIVE_BGTO,obtctl clractivebgto '${i}';colorizer -s")
|
||||
out2+=("$OB_ACTIVE_TEXT,obtctl activetextcolor '${i}';colorizer -s")
|
||||
out2+=("$OB_ACTIVE_BORDER,obtctl activeborderColor '${i}';colorizer -s")
|
||||
out2+=("^sep(<small>$INACTIVE_WIN</small>)")
|
||||
out2+=("$OB_INACTIVE_BG,obtctl clrnormalbg '${i}';colorizer -s")
|
||||
out2+=("$OB_INACTIVE_BGTO,obtctl clrnormalbgto '${i}';colorizer -s")
|
||||
out2+=("$OB_INACTIVE_TEXT,obtctl inactivetextcolor '${i}';colorizer -s")
|
||||
out2+=("$OB_INACTIVE_BORDER,obtctl inactiveborderColor '${i}';colorizer -s")
|
||||
|
||||
out2+=("^sep(<big>$MENUPANELS</big>)")
|
||||
out2+=("$MENU_BGCOLOR,jgctl color_menu_bg '${i}';colorizer -s")
|
||||
out2+=("$MENU_SEP_BG,jgctl color_title_bg '${i}';colorizer -s")
|
||||
out2+=("$MENU_ITEM_FG,jgctl color_norm_fg '${i}';colorizer -s")
|
||||
out2+=("$MENU_ACTIVE_BG,jgctl color_sel_bg '${i}';colorizer -s")
|
||||
out2+=("$MENU_BORDER,jgctl color_menu_border '${i}';colorizer -s")
|
||||
|
||||
out2+=("^sep(<big>Conky</big>)")
|
||||
out2+=("$CONKY_BGCOLOR_ALL,conkyctl win_bgcolor_all '${i}';colorizer -s")
|
||||
# array with running conkies - only filenames with full path
|
||||
readarray -t running < <(pgrep -af "conky.*mbcolor" | cut -d' ' -f4)
|
||||
|
||||
if [[ ${#running[@]} > 0 ]];then
|
||||
out2+=("^sep(<small>$RUNNING_CONKYS</small>)")
|
||||
for c in ${running[@]};do
|
||||
filename=${c##*/}
|
||||
name=${filename%%_mb*}
|
||||
title=${name//_/ }
|
||||
out2+=("$BGCOLOR_OF ${title^},conkyctl win_bgcolor '${i}' '${c}';colorizer -s")
|
||||
done
|
||||
fi
|
||||
|
||||
else
|
||||
out+=("<tt><small>$i</small> <span bgcolor='$i'> </span></tt>,w2theme accent '${i}';colorizer -s")
|
||||
fi
|
||||
|
||||
done
|
||||
out+=("^sep()")
|
||||
out+=("$ACCENT_COLORS,^checkout(acccolors)")
|
||||
out2+=("^tag(acccolors)")
|
||||
out2+=("^sep(Ubuntu)")
|
||||
for i in ${ubuntu[@]};do
|
||||
if [ $rootcolors = select ];then
|
||||
((n+=1))
|
||||
out2+=("<tt><small>$i</small> <span bgcolor='$i'> </span></tt>,^checkout(${i:1}${n}")
|
||||
out3+=("^tag(${i:1}${n})")
|
||||
out3+=("^sep(<tt>$COLOR <span bgcolor='$i'> </span> <small>$i</small> <span bgcolor='$i'> </span></tt>)")
|
||||
out3+=("$SETACCENT,w2theme accent '${i}';colorizer -s")
|
||||
out3+=("^sep(<big>OpenBox</big>)")
|
||||
out3+=("^sep(<small>$ACTIVE_WIN</small>)")
|
||||
out3+=("$OB_ACTIVE_BG,obtctl clractivebg '${i}';colorizer -s")
|
||||
out3+=("$OB_ACTIVE_BGTO,obtctl clractivebgto '${i}';colorizer -s")
|
||||
out3+=("$OB_ACTIVE_TEXT,obtctl activetextcolor '${i}';colorizer -s")
|
||||
out3+=("$OB_ACTIVE_BORDER,obtctl activeborderColor '${i}';colorizer -s")
|
||||
out3+=("^sep(<small>$INACTIVE_WIN</small>)")
|
||||
out3+=("$OB_INACTIVE_BG,obtctl clrnormalbg '${i}';colorizer -s")
|
||||
out3+=("$OB_INACTIVE_BGTO,obtctl clrnormalbgto '${i}';colorizer -s")
|
||||
out3+=("$OB_INACTIVE_TEXT,obtctl inactivetextcolor '${i}';colorizer -s")
|
||||
out3+=("$OB_INACTIVE_BORDER,obtctl inactiveborderColor '${i}';colorizer -s")
|
||||
|
||||
out3+=("^sep(<big>$MENUPANELS</big>)")
|
||||
out3+=("$MENU_BGCOLOR,jgctl color_menu_bg '${i}';colorizer -s")
|
||||
out3+=("$MENU_SEP_BG,jgctl color_title_bg '${i}';colorizer -s")
|
||||
out3+=("$MENU_ITEM_FG,jgctl color_norm_fg '${i}';colorizer -s")
|
||||
out3+=("$MENU_ACTIVE_BG,jgctl color_sel_bg '${i}';colorizer -s")
|
||||
out3+=("$MENU_BORDER,jgctl color_menu_border '${i}';colorizer -s")
|
||||
|
||||
out3+=("^sep(<big>Conky</big>)")
|
||||
out3+=("$CONKY_BGCOLOR_ALL,conkyctl win_bgcolor_all '${i}';colorizer -s")
|
||||
# array with running conkies - only filenames with full path
|
||||
readarray -t running < <(pgrep -af "conky.*mbcolor" | cut -d' ' -f4)
|
||||
|
||||
if [[ ${#running[@]} > 0 ]];then
|
||||
out3+=("^sep(<small>$RUNNING_CONKYS</small>)")
|
||||
for c in ${running[@]};do
|
||||
filename=${c##*/}
|
||||
name=${filename%%_mb*}
|
||||
title=${name//_/ }
|
||||
out3+=("$BGCOLOR_OF ${title^},conkyctl win_bgcolor '${i}' '${c}';colorizer -s")
|
||||
done
|
||||
fi
|
||||
else
|
||||
out2+=("<tt><small>$i</small> <span bgcolor='$i'> </span></tt>,w2theme accent '${i}';colorizer -s")
|
||||
fi
|
||||
done
|
||||
out2+=("^sep(Mint)")
|
||||
for i in ${mint[@]};do
|
||||
if [ $rootcolors = select ];then
|
||||
((n+=1))
|
||||
out2+=("<tt><small>$i</small> <span bgcolor='$i'> </span></tt>,^checkout(${i:1}${n}")
|
||||
out3+=("^tag(${i:1}${n})")
|
||||
out3+=("^sep(<tt>$COLOR <span bgcolor='$i'> </span> <small>$i</small> <span bgcolor='$i'> </span></tt>)")
|
||||
out3+=("$SETACCENT,w2theme accent '${i}';colorizer -s")
|
||||
out3+=("^sep(<big>OpenBox</big>)")
|
||||
out3+=("^sep(<small>$ACTIVE_WIN</small>)")
|
||||
out3+=("$OB_ACTIVE_BG,obtctl clractivebg '${i}';colorizer -s")
|
||||
out3+=("$OB_ACTIVE_BGTO,obtctl clractivebgto '${i}';colorizer -s")
|
||||
out3+=("$OB_ACTIVE_TEXT,obtctl activetextcolor '${i}';colorizer -s")
|
||||
out3+=("$OB_ACTIVE_BORDER,obtctl activeborderColor '${i}';colorizer -s")
|
||||
out3+=("^sep(<small>$INACTIVE_WIN</small>)")
|
||||
out3+=("$OB_INACTIVE_BG,obtctl clrnormalbg '${i}';colorizer -s")
|
||||
out3+=("$OB_INACTIVE_BGTO,obtctl clrnormalbgto '${i}';colorizer -s")
|
||||
out3+=("$OB_INACTIVE_TEXT,obtctl inactivetextcolor '${i}';colorizer -s")
|
||||
out3+=("$OB_INACTIVE_BORDER,obtctl inactiveborderColor '${i}';colorizer -s")
|
||||
|
||||
out3+=("^sep(<big>$MENUPANELS</big>)")
|
||||
out3+=("$MENU_BGCOLOR,jgctl color_menu_bg '${i}';colorizer -s")
|
||||
out3+=("$MENU_SEP_BG,jgctl color_title_bg '${i}';colorizer -s")
|
||||
out3+=("$MENU_ITEM_FG,jgctl color_norm_fg '${i}';colorizer -s")
|
||||
out3+=("$MENU_ACTIVE_BG,jgctl color_sel_bg '${i}';colorizer -s")
|
||||
out3+=("$MENU_BORDER,jgctl color_menu_border '${i}';colorizer -s")
|
||||
|
||||
out3+=("^sep(<big>Conky</big>)")
|
||||
out3+=("$CONKY_BGCOLOR_ALL,conkyctl win_bgcolor_all '${i}';colorizer -s")
|
||||
# array with running conkies - only filenames with full path
|
||||
readarray -t running < <(pgrep -af "conky.*mbcolor" | cut -d' ' -f4)
|
||||
|
||||
if [[ ${#running[@]} > 0 ]];then
|
||||
out3+=("^sep(<small>$RUNNING_CONKYS</small>)")
|
||||
for c in ${running[@]};do
|
||||
filename=${c##*/}
|
||||
name=${filename%%_mb*}
|
||||
title=${name//_/ }
|
||||
out3+=("$BGCOLOR_OF ${title^},conkyctl win_bgcolor '${i}' '${c}';colorizer -s")
|
||||
done
|
||||
fi
|
||||
else
|
||||
out2+=("<tt><small>$i</small> <span bgcolor='$i'> </span></tt>,w2theme accent '${i}';colorizer -s")
|
||||
fi
|
||||
done
|
||||
out2+=("^sep(Plasma)")
|
||||
for i in ${plasma[@]};do
|
||||
if [ $rootcolors = select ];then
|
||||
((n+=1))
|
||||
out2+=("<tt><small>$i</small> <span bgcolor='$i'> </span></tt>,^checkout(${i:1}${n}")
|
||||
out3+=("^tag(${i:1}${n})")
|
||||
out3+=("^sep(<tt>$COLOR <span bgcolor='$i'> </span> <small>$i</small> <span bgcolor='$i'> </span></tt>)")
|
||||
out3+=("$SETACCENT,w2theme accent '${i}';colorizer -s")
|
||||
out3+=("^sep(<big>OpenBox</big>)")
|
||||
out3+=("^sep(<small>$ACTIVE_WIN</small>)")
|
||||
out3+=("$OB_ACTIVE_BG,obtctl clractivebg '${i}';colorizer -s")
|
||||
out3+=("$OB_ACTIVE_BGTO,obtctl clractivebgto '${i}';colorizer -s")
|
||||
out3+=("$OB_ACTIVE_TEXT,obtctl activetextcolor '${i}';colorizer -s")
|
||||
out3+=("$OB_ACTIVE_BORDER,obtctl activeborderColor '${i}';colorizer -s")
|
||||
out3+=("^sep(<small>$INACTIVE_WIN</small>)")
|
||||
out3+=("$OB_INACTIVE_BG,obtctl clrnormalbg '${i}';colorizer -s")
|
||||
out3+=("$OB_INACTIVE_BGTO,obtctl clrnormalbgto '${i}';colorizer -s")
|
||||
out3+=("$OB_INACTIVE_TEXT,obtctl inactivetextcolor '${i}';colorizer -s")
|
||||
out3+=("$OB_INACTIVE_BORDER,obtctl inactiveborderColor '${i}';colorizer -s")
|
||||
|
||||
out3+=("^sep(<big>$MENUPANELS</big>)")
|
||||
out3+=("$MENU_BGCOLOR,jgctl color_menu_bg '${i}';colorizer -s")
|
||||
out3+=("$MENU_SEP_BG,jgctl color_title_bg '${i}';colorizer -s")
|
||||
out3+=("$MENU_ITEM_FG,jgctl color_norm_fg '${i}';colorizer -s")
|
||||
out3+=("$MENU_ACTIVE_BG,jgctl color_sel_bg '${i}';colorizer -s")
|
||||
out3+=("$MENU_BORDER,jgctl color_menu_border '${i}';colorizer -s")
|
||||
|
||||
out3+=("^sep(<big>Conky</big>)")
|
||||
out3+=("$CONKY_BGCOLOR_ALL,conkyctl win_bgcolor_all '${i}';colorizer -s")
|
||||
# array with running conkies - only filenames with full path
|
||||
readarray -t running < <(pgrep -af "conky.*mbcolor" | cut -d' ' -f4)
|
||||
|
||||
if [[ ${#running[@]} > 0 ]];then
|
||||
out3+=("^sep(<small>$RUNNING_CONKYS</small>)")
|
||||
for c in ${running[@]};do
|
||||
filename=${c##*/}
|
||||
name=${filename%%_mb*}
|
||||
title=${name//_/ }
|
||||
out3+=("$BGCOLOR_OF ${title^},conkyctl win_bgcolor '${i}' '${c}';colorizer -s")
|
||||
done
|
||||
fi
|
||||
else
|
||||
out2+=("<tt><small>$i</small> <span bgcolor='$i'> </span></tt>,w2theme accent '${i}';colorizer -s")
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
||||
### TODO Rework below as submenu(edit palette and present palette with HTML helper- to keep it on desktop, allowing to copy colors from it)
|
||||
|
@ -522,8 +238,7 @@ done
|
|||
##out+=("^sep()")
|
||||
##out+=(" $EDIT_PALETTE,xdg-open $WALLPALDIR/$WALLPAPER.clr")
|
||||
|
||||
# Przerobić na submenu
|
||||
if [[ "$wall2themes" == "yes" ]];then
|
||||
|
||||
out+=("^sep($RANDWALL)")
|
||||
syswallp=$(shopt -s nullglob ; set -- /usr/share/backgrounds/*.{jpg,JPG,jpeg,JPEG,png,PNG} ; echo $#)
|
||||
out+=(" $SYSWALLPAPER (<small>${syswallp}</small>),nitrogen --random /usr/share/backgrounds --set-scaled --save;colorizer -s")
|
||||
|
@ -533,7 +248,6 @@ out+=(" $SYSWALLPAPER (<small>${syswallp}</small>),nitrogen --random /usr/sh
|
|||
fi
|
||||
out+=("^sep()")
|
||||
out+=("$WALLPAPERS,^checkout(wallpapersettings)")
|
||||
fi
|
||||
|
||||
if [[ "$gradient_obtheme" == "yes" || "$gradient_menu" == "yes" ]];then
|
||||
[[ "$gradient_obtheme" == "yes" ]] && OBGRAD="OB" || OBGRAD=""
|
||||
|
@ -571,51 +285,7 @@ fi
|
|||
###
|
||||
|
||||
out2+=("^tag(settings)")
|
||||
out2+=("^sep($AUTOGEN_THEMES)")
|
||||
[[ "$wall2themes" = "yes" ]] && out2+=("<big></big> $AUTOGEN_THEMES,mb-setvar wall2themes=no $CNF_FILE;colorizer -s") || out2+=("<big></big> $AUTOGEN_THEMES,mb-setvar wall2themes=yes $CNF_FILE;colorizer -s")
|
||||
|
||||
out2+=("^sep()")
|
||||
|
||||
out2+=("$OBTHEME [ <b>${wall2themes_ob}</b> ],^checkout(ob)")
|
||||
out3+=("^tag(ob)")
|
||||
out3+=("^sep($GENOB)")
|
||||
out3+=("$NO,mb-setvar wall2themes_ob=none $CNF_FILE;colorizer -s")
|
||||
out3+=("^sep()")
|
||||
out3+=("$LIGHTBG,mb-setvar wall2themes_ob=light $CNF_FILE;colorizer -s")
|
||||
out3+=("$DARKBG,mb-setvar wall2themes_ob=dark $CNF_FILE;colorizer -s")
|
||||
|
||||
|
||||
out2+=("$MENUPANELS [ <b>${wall2themes_menu}</b> ],^checkout(mp)")
|
||||
out3+=("^tag(mp)")
|
||||
out3+=("^sep($GENMENU)")
|
||||
out3+=("$NO,mb-setvar wall2themes_menu=none $CNF_FILE;colorizer -s")
|
||||
out3+=("^sep()")
|
||||
out3+=("$LIGHTBG,mb-setvar wall2themes_menu=light $CNF_FILE;colorizer -s")
|
||||
out3+=("$DARKBG,mb-setvar wall2themes_menu=dark $CNF_FILE;colorizer -s")
|
||||
|
||||
|
||||
out2+=("Conky [ <b>${wall2themes_conky}</b> ],^checkout(conky)")
|
||||
out3+=("^tag(conky)")
|
||||
out3+=("^sep($GENCONKY)")
|
||||
out3+=("$NO,mb-setvar wall2themes_conky=none $CNF_FILE;colorizer -s")
|
||||
out3+=("^sep()")
|
||||
out3+=("$LIGHTBG,mb-setvar wall2themes_conky=light $CNF_FILE;colorizer -s")
|
||||
out3+=("$DARKBG,mb-setvar wall2themes_conky=dark $CNF_FILE;colorizer -s")
|
||||
#out2+=("$DIFF_CONKY_COLORS [ <b>$conky_diff_colors</b> ],^checkout(conkycolors)")
|
||||
#out3+=("^tag(conkycolors)")
|
||||
#out3+=("^sep($DIFF_CONKY_COLORS)")
|
||||
#out3+=("$YES,mb-setvar conky_diff_colors=yes $CNF_FILE;colorizer -s")
|
||||
#out3+=("$NO,mb-setvar conky_diff_colors=no $CNF_FILE;colorizer -s")
|
||||
|
||||
|
||||
out2+=("PyRadio [ <b>${wall2themes_pyradio}</b> ],^checkout(pyradio)")
|
||||
out3+=("^tag(pyradio)")
|
||||
out3+=("^sep($GENPYRADIO)")
|
||||
out3+=("$NO,mb-setvar wall2themes_pyradio=none $CNF_FILE;colorizer -s")
|
||||
out3+=("^sep()")
|
||||
out3+=("$LIGHTBG,mb-setvar wall2themes_pyradio=light $CNF_FILE;colorizer -s")
|
||||
out3+=("$DARKBG,mb-setvar wall2themes_pyradio=dark $CNF_FILE;colorizer -s")
|
||||
#out2+=("^sep()")
|
||||
|
||||
#out2+=("$WALLPAPERS,^checkout(wallpapersettings)")
|
||||
out3+=("^tag(wallpapersettings)")
|
||||
|
@ -741,28 +411,11 @@ if [[ "$1" == "-s" ]]; then
|
|||
|
||||
mkconfigfile
|
||||
#THUMB="$(DISPLAY=:0 scrot -t 220x100 -o $HOME/.config/mabox/colorizer.png -e 'echo $m')"
|
||||
case "$LANG" in
|
||||
pl*) THGEN="generuj motywy:";;
|
||||
*) THGEN="auto theming:";;
|
||||
esac
|
||||
if [ "$wall2themes" = "yes" ]; then
|
||||
FGCOL="limegreen"
|
||||
case "$LANG" in
|
||||
pl*) STATE="on";;
|
||||
*) STATE="on";;
|
||||
esac
|
||||
else
|
||||
FGCOL="red"
|
||||
case "$LANG" in
|
||||
pl*) STATE="off";;
|
||||
*) STATE="off";;
|
||||
esac
|
||||
fi
|
||||
|
||||
cat <<EOF > ${MENU_ITEMS}
|
||||
@icon,,$((jgtools_padding)),$((jgtools_padding)),270,150,4,left,top,,,${THUMB}
|
||||
@rect,,$((jgtools_padding)),$((jgtools_padding + 4)),270,20,0,left,top,#222222 20,#222222 70,
|
||||
|
||||
@rect,,$((jgtools_padding)),$((jgtools_padding + 114)),270,32,0,left,top,#222222 20,#222222 70,
|
||||
@text,,$((jgtools_padding + 12)),$((jgtools_padding)),270,30,0,left,top,#FFFFFF ,${WINCLR}, <span size='10400' font_family='Ubuntu'><small>${THGEN}</small> <span fgcolor='$FGCOL'><b>$STATE</b></span></span>
|
||||
@text,,$((jgtools_padding + 168)),$((jgtools_padding + 116)),120,30,0,left,top,#FFFFFF ,${WINCLR},<span size='10400' font_family='Ubuntu'><b>Colorizer</b></span>
|
||||
$(printf '%s\n' "${dots[@]}")
|
||||
#@icon,,$((jgtools_padding + 4)),$((jgtools_padding + 34)),270,120,4,left,top,,,/usr/share/mabox-colorizer/img/colorizer.png
|
||||
|
|
|
@ -97,7 +97,7 @@ nav button.w3-bar-item {padding:4px 12px !important;}
|
|||
<li><strong><span class="w3-tag w3-round w3-tiny w3-light-green link" onclick="openTab(event, 'Openbox')">Openbox theme</span></strong> (window decorations)</li>
|
||||
<li><strong><span class="w3-tag w3-round w3-tiny w3-light-green link" onclick="openTab(event, 'Jgmenu')">Menu/Sidepanels</span></strong> and other <i>jgmenu-based</i> <strong>Mabox tools</strong></li>
|
||||
<li><strong><span class="w3-tag w3-round w3-tiny w3-light-green link" onclick="openTab(event, 'Conky')">Conkies</span></strong></li>
|
||||
<li><strong><span class="w3-tag w3-round w3-tiny w3-amber link" onclick="openTab(event, 'Wall2theme')">Automatically generate themes</span></strong> for all above <strong>from Wallpaper colors</strong></li>
|
||||
<li><strong><span class="w3-tag w3-round w3-tiny w3-amber link" onclick="openTab(event, 'Wall2theme')">Generate themes</span></strong> for all above <strong>from Wallpaper colors</strong></li>
|
||||
<!--<li><strong>PyRadio</strong> - Internet Radio Player</li>//-->
|
||||
</ul></p>
|
||||
<p class="w3-center"> Try <strong>Randomizer</strong> to change themes quickly. You can securely reset to defaults at any time <span class="w3-tag w3-round w3-red">New!</span></p>
|
||||
|
@ -535,9 +535,6 @@ You can add <strong>your own commands</strong> to each Conky, which will be show
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<h4>Automatic generation of themes after changing wallpaper</h4>
|
||||
<p>You can setup Colorizer to auto-generate themes when you change wallpaper.<br /> Use <a class="w3-tag w3-round w3-light-green w3-small w3-hover-yellow" href="run://colorizer -s"> Colorizer -> Settings</a> or <a class="w3-tag w3-round w3-light-green w3-small w3-hover-yellow" href="config://.config/colorizer/colorizer.conf"> edit configuration file</a> to enable this feature.</p>
|
||||
|
||||
</section>
|
||||
<section id="pyradiocava" class="w3-container tab" style="display:none;min-height:100vh;">
|
||||
<div class="fixed">
|
||||
|
|
|
@ -97,7 +97,7 @@ nav button.w3-bar-item {padding:4px 12px !important;}
|
|||
<li><strong><span class="w3-tag w3-round w3-tiny w3-light-green link" onclick="openTab(event, 'Openbox')">Motywu Openbox</span></strong> (dekoracje okien)</li>
|
||||
<li><strong><span class="w3-tag w3-round w3-tiny w3-light-green link" onclick="openTab(event, 'Jgmenu')">Menu oraz Paneli bocznych</span></strong> oraz innych <i>bazujących na jgmenu</i> <strong>narzędzi Mabox</strong></li>
|
||||
<li><strong><span class="w3-tag w3-round w3-tiny w3-light-green link" onclick="openTab(event, 'Conky')">Conky</span></strong></li>
|
||||
<li><strong><span class="w3-tag w3-round w3-tiny w3-amber link" onclick="openTab(event, 'Wall2theme')">Automatyczne generowanie motywów</span></strong> na podstawie <strong>kolorystyki tapety</strong></li>
|
||||
<li><strong><span class="w3-tag w3-round w3-tiny w3-amber link" onclick="openTab(event, 'Wall2theme')">Generowanie motywów</span></strong> na podstawie <strong>kolorystyki tapety</strong></li>
|
||||
</ul></p>
|
||||
<p class="w3-center"> Wypróbuj <strong>Randomizer</strong> - szybko zmieniaj motywy. Bezpiecznie zresetuj gdy chcesz.<span class="w3-tag w3-round w3-red">Nowe!</span></p>
|
||||
<div class="w3-row">
|
||||
|
@ -545,10 +545,7 @@ Do każdego Conky możesz dodać <strong>własne polecenia</strong>, które zost
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h4>Automatyczne generowanie motywów po zmianie tapety</h4>
|
||||
<p>Jeśli chcesz możesz ustawić automatyczne generowanie motywów po zmianie tapety<br /> Aby to włączyć użyj <a class="w3-tag w3-round w3-light-green w3-small w3-hover-yellow" href="run://colorizer -s"> Colorizer -> Ustawienia</a> lub <a class="w3-tag w3-round w3-light-green w3-small w3-hover-yellow" href="config://.config/colorizer/colorizer.conf"> edytuj plik konfiguracyjny</a></p>
|
||||
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
<section id="pyradiocava" class="w3-container tab" style="display:none;min-height:100vh;">
|
||||
|
|
Loading…
Reference in New Issue