This commit is contained in:
2026-04-27 09:23:49 +02:00
parent 6c82dab7e1
commit c6dd951352
4 changed files with 91 additions and 34 deletions

View File

@@ -134,10 +134,10 @@ case "$LANG" in
COLOR_NORM_BG="Tło" COLOR_NORM_BG="Tło"
SEPARATOR_TITLE="Separator/Nagłówek" SEPARATOR_TITLE="Separator/Nagłówek"
TITLE="Nagłówek" TITLE="Nagłówek"
COLOR_TITLE_BG="Tło nagłówka" COLOR_TITLE_BG="Tło"
COLOR_TITLE_FG="Kolor tekstu nagłówka" COLOR_TITLE_FG="Tekst"
COLOR_TITLE_BORDER="Kolor obramowania" COLOR_TITLE_BORDER="Obramowanie"
SEP_HALIGN="Wyrównanie nagłówka" SEP_HALIGN="Wyrównanie"
H_LEFT="do lewej" H_LEFT="do lewej"
H_CENTER="po środku" H_CENTER="po środku"
H_RIGHT="do prawej" H_RIGHT="do prawej"
@@ -220,10 +220,10 @@ case "$LANG" in
COLOR_NORM_BG="Item Background" COLOR_NORM_BG="Item Background"
SEPARATOR_TITLE="Separator/Title" SEPARATOR_TITLE="Separator/Title"
TITLE="Title" TITLE="Title"
COLOR_TITLE_BG="Title Background" COLOR_TITLE_BG="Background"
COLOR_TITLE_FG="Title Foreground" COLOR_TITLE_FG="Text"
COLOR_TITLE_BORDER="Title Border color " COLOR_TITLE_BORDER=" Border color "
SEP_HALIGN="Title alignment" SEP_HALIGN="Alignment"
H_LEFT="left" H_LEFT="left"
H_CENTER="center" H_CENTER="center"
H_RIGHT="right" H_RIGHT="right"

View File

@@ -17,6 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# w2theme - generate themes from wallpaper colors # w2theme - generate themes from wallpaper colors
. ~/.config/mabox/mabox.conf
WALLPALDIR="$HOME/.cache/colorizer/palettes" WALLPALDIR="$HOME/.cache/colorizer/palettes"
mkdir -p "$WALLPALDIR" mkdir -p "$WALLPALDIR"
@@ -49,6 +50,9 @@ accents=("#e93d57" "#c7162b" "#e9633a" "#e95620" "#f4a300" "#e8cc2d" "#3cd425" "
menu_theme () { menu_theme () {
jgctl theme MBcolors jgctl theme MBcolors
jgctl color_menu_bg 100
jgctl color_menu_bg_to 100
case "$1" in case "$1" in
dark2) #dark bg dark2) #dark bg
ITEM_FG=$(pastel textcolor ${w[1]}|pastel format hex) ITEM_FG=$(pastel textcolor ${w[1]}|pastel format hex)
@@ -68,7 +72,9 @@ menu_theme () {
jgctl color_sel_fg "${ITEM_FG}" jgctl color_sel_fg "${ITEM_FG}"
jgctl color_sel_border "${w[2]}" jgctl color_sel_border "${w[2]}"
jgctl color_sep_fg "${w[2]}" jgctl color_sep_fg "${w[2]}"
jgctl color_norm_bg "${w[1]}" #jgctl color_norm_bg "${w[1]}"
jgctl color_norm_bg "#000000"
jgctl color_norm_bg "10"
#sleep 1 #sleep 1
;; ;;
dark) #dark bg dark) #dark bg
@@ -89,7 +95,9 @@ menu_theme () {
jgctl color_sel_fg "${ITEM_FG}" jgctl color_sel_fg "${ITEM_FG}"
jgctl color_sel_border "${w[2]}" jgctl color_sel_border "${w[2]}"
jgctl color_sep_fg "${w[2]}" jgctl color_sep_fg "${w[2]}"
jgctl color_norm_bg "${w[0]}" #jgctl color_norm_bg "${w[0]}"
jgctl color_norm_bg "#FFFFFF"
jgctl color_norm_bg "3"
#sleep 1 #sleep 1
;; ;;
light) #light bg light) #light bg
@@ -110,7 +118,9 @@ menu_theme () {
jgctl color_sel_fg "${ITEM_FG}" jgctl color_sel_fg "${ITEM_FG}"
jgctl color_sel_border "${w[-3]}" jgctl color_sel_border "${w[-3]}"
jgctl color_sep_fg "${w[-3]}" jgctl color_sep_fg "${w[-3]}"
jgctl color_norm_bg "${w[-1]}" #jgctl color_norm_bg "${w[-1]}"
jgctl color_norm_bg "#000000"
jgctl color_norm_bg "5"
#sleep 1 #sleep 1
;; ;;
light2) #light bg light2) #light bg
@@ -131,7 +141,9 @@ menu_theme () {
jgctl color_sel_fg "${ITEM_FG}" jgctl color_sel_fg "${ITEM_FG}"
jgctl color_sel_border "${w[-3]}" jgctl color_sel_border "${w[-3]}"
jgctl color_sep_fg "${w[-3]}" jgctl color_sep_fg "${w[-3]}"
jgctl color_norm_bg "${w[-2]}" #jgctl color_norm_bg "${w[-2]}"
jgctl color_norm_bg "#FFFFFF"
jgctl color_norm_bg "10"
#sleep 1 #sleep 1
;; ;;
esac esac
@@ -159,8 +171,8 @@ conky_colors() {
conkyctl color3_all "${w[-2]}" conkyctl color3_all "${w[-2]}"
;; ;;
*) #light bg *) #light bg
conkyctl win_bgcolor_all "${w[-1]}" conkyctl win_bgcolor_all "${w[-2]}"
conkyctl default_color_all "${w[1]}" conkyctl default_color_all "${w[-3]}"
conkyctl color0_all "${w[2]}" conkyctl color0_all "${w[2]}"
conkyctl color1_all "${w[5]}" conkyctl color1_all "${w[5]}"
conkyctl color2_all "${w[3]}" conkyctl color2_all "${w[3]}"
@@ -363,6 +375,30 @@ case "$1" in
esac esac
obtctl shadow 0 obtctl shadow 0
} }
logo_colors(){
case "$1" in
dark)
mabox-logo colors ${w[1]} ${w[-1]}
;;
light)
mabox-logo colors ${w[-2]} ${w[3]}
;;
esac
}
clock(){
case "$1" in
dark)
conkyctl color8 ${w[2]} ~/.config/conky/Better_Clock_mbcolor.conkyrc
conkyctl color9 ${w[4]} ~/.config/conky/Better_Clock_mbcolor.conkyrc
;;
light)
conkyctl color8 ${w[-1]} ~/.config/conky/Better_Clock_mbcolor.conkyrc
conkyctl color9 ${w[-2]} ~/.config/conky/Better_Clock_mbcolor.conkyrc
;;
esac
}
notify_colorize(){ notify_colorize(){
case "$LANG" in case "$LANG" in
@@ -389,11 +425,28 @@ _RESET="Reset"
esac esac
notify-send.sh -t 5000 -i ~/.config/mabox/wpicon_wide.png --replace-file=/tmp/colorize_notid "$_TITLE" "$_THEME_MODIFIED" \ notify-send.sh -t 5000 -i ~/.config/mabox/wpicon_wide.png --replace-file=/tmp/colorize_notid "$_TITLE" "$_THEME_MODIFIED" \
-o "$_NEXT:mbwallpaper -o" -o "$_SETTINGS:jgwallpaperchanger -s autoth" -o "$_RESET:w2theme resetall" -o "$_NEXT:mbwallpaper -o" -o "$_SETTINGS:jgwallpaperchanger -s autoth" -o "$_RESET:w2theme resetall" -o "DISABLE NOTIFY:mb-setvar autotheming_notify=false"
} }
colorize () { colorize () {
source ~/.config/colorizer/colorizer.conf source ~/.config/colorizer/colorizer.conf
[ -v autotheming_notify ] && : || mb-setvar autotheming_notify=true
if [[ "$autotheming_notify" == "true" ]];then
notify-send.sh -t 5000 -i ~/.config/mabox/wpicon_wide.png --replace-file=/tmp/colorize_notid "Mabox Auto theming in progress..." "\n\nPlease wait... a few seconds...\n\n"
fi
# #
# Logo SVG
case "$wall2themes_logo" in
dark) logo_colors dark;;
light) logo_colors light;;
*) : ;;
esac
# Better Clock
case "$wall2themes_clock" in
dark) clock dark;;
light) clock light;;
*) : ;;
esac
# CONKY # CONKY
case "$wall2themes_conky" in case "$wall2themes_conky" in
dark) conky_colors dark;; dark) conky_colors dark;;
@@ -401,6 +454,7 @@ colorize () {
*) : ;; *) : ;;
esac esac
#show_desktop #show_desktop
#sleep 1 #sleep 1
#show_desktop #show_desktop
@@ -436,9 +490,9 @@ colorize () {
light) menu_theme light;; light) menu_theme light;;
*) : ;; *) : ;;
esac esac
if [[ "$autotheming_notify" == true ]];then
notify_colorize notify_colorize
fi
} }
@@ -484,8 +538,9 @@ reverse () {
*) : ;; *) : ;;
esac esac
if [[ "$autotheming_notify" == "true" ]];then
notify_colorize notify_colorize
fi
} }
genthumb () { genthumb () {
@@ -518,6 +573,7 @@ rm -rf ~/.config/colorizer/pinned/$WALLNAME
} }
resetall(){ resetall(){
fehbg default fehbg default
mabox-logo default
conkyctl resetcolorsall conkyctl resetcolorsall
obtctl resetMBcolors obtctl resetMBcolors
jgctl resetMBcolors jgctl resetMBcolors
@@ -532,6 +588,8 @@ case "$1" in
conkyone) conky_colorsone "$2" "$3";; conkyone) conky_colorsone "$2" "$3";;
pyradio) pyradio_theme "$2";; pyradio) pyradio_theme "$2";;
cava) cava "$2";; cava) cava "$2";;
logo_colors) logo_colors "$2";;
clock) clock "$2";;
accent) accent "$2";; accent) accent "$2";;
gradient) gradient "$2" "$3";; gradient) gradient "$2" "$3";;
colorize) colorize;; colorize) colorize;;

View File

@@ -511,20 +511,20 @@ If you need a full set of options, precise color tuning and transparency - use t
<div class="gi4 gi4r left-align"><h2>Conky widgets</h2> <div class="gi4 gi4r left-align"><h2>Conky widgets</h2>
<p>Mabox provides several Conky configurations. <i>click names below to toggle</i></p> <p>Mabox provides several Conky configurations. <i>click names below to toggle</i></p>
<p class="center"> <p class="center">
System Info<br /> <strong>System Info</strong><br />
<a class="tag small teal" href="run://conkyctl toggleone sysinfo_mbcolor">Default</a> <a class="tag small teal" href="run://conkyctl toggleone sysinfo_mbcolor">Default</a>
<a class="tag small teal" href="run://conkyctl toggleone mabox_info">Mini</a> <a class="tag small teal" href="run://conkyctl toggleone mabox_info">Mini</a>
<a class="tag small teal" href="run://conkyctl toggleone Info_Bar">Info Bar</a><br /> <a class="tag small teal" href="run://conkyctl toggleone Info_Bar">Info Bar</a><br />
<a class="tag small teal" href="run://conkyctl toggleone CPU">CPU</a> <a class="tag small teal" href="run://conkyctl toggleone CPU">CPU</a>
<a class="tag small teal" href="run://conkyctl toggleone RAM">RAM</a> <a class="tag small teal" href="run://conkyctl toggleone RAM">RAM</a>
<a class="tag small teal" href="run://conkyctl toggleone mount_points">Discs</a> <a class="tag small teal" href="run://conkyctl toggleone mount_points">Discs</a>
<a class="tag small teal" href="run://conkyctl toggleone Network">Network</a><br /> <a class="tag small teal" href="run://conkyctl toggleone Network">Network</a><br /><br />
Educational</br /> <strong>Educational</strong></br />
<a class="tag small teal" href="run://conkyctl toggleone shortcuts_mbcolor">Shortcuts</a> <a class="tag small teal" href="run://conkyctl toggleone shortcuts_mbcolor">Shortcuts</a>
<a class="tag small teal" href="run://conkyctl toggleone PCmanFM">PCmanFM</a> <a class="tag small teal" href="run://conkyctl toggleone PCmanFM">PCmanFM</a>
<a class="tag small teal" href="run://conkyctl toggleone tiling_terminal">Terminal</a> <a class="tag small teal" href="run://conkyctl toggleone tiling_terminal">Terminal</a>
<a class="tag small teal" href="run://conkyctl toggleone mabox_tools_">Mabox Tools</a><br /> <a class="tag small teal" href="run://conkyctl toggleone mabox_tools_">Mabox Tools</a><br /><br />
Advanced<br /> <strong>Advanced</strong><br />
<a class="tag small teal" href="run://conkyctl toggleone Better_Clock">Clock</a> <a class="tag small teal" href="run://conkyctl toggleone Better_Clock">Clock</a>
<a class="tag small teal" href="run://conkyctl toggleone Polaroid">Polaroid</a> <a class="tag small teal" href="run://conkyctl toggleone Polaroid">Polaroid</a>
<a class="tag small teal" href="run://conkyctl toggleone quoter_">Quotes</a> <a class="tag small teal" href="run://conkyctl toggleone quoter_">Quotes</a>

View File

@@ -500,30 +500,29 @@ Jeśli potrzebujesz pełen zestaw opcji, precyzyjnego dostrajania kolorów i prz
<main class="grid"> <main class="grid">
<div class="gi4 gi4r left-align"><h2>Widżety Conky</h2> <div class="gi4 gi4r left-align"><h2>Widżety Conky</h2>
<p>Mabox dostarcza kilkunastu konfiguracji Conky.<br /><em>Kliknij ich nazwy poniżej aby je wypróbować (właczyć/wyłączyć).</em></p> <p>Mabox dostarcza kilkunastu konfiguracji Conky.<br /><em>Kliknij ich nazwy poniżej aby je wypróbować (właczyć/wyłączyć).</em></p>
<p class="center">Informacje systemowe<br /> <p class="center"><strong>informacje systemowe</strong><br />
<a class="tag small teal" href="run://conkyctl toggleone sysinfo_mbcolor">Domyślne</a> <a class="tag small teal" href="run://conkyctl toggleone sysinfo_mbcolor">Domyślne</a>
<a class="tag small teal" href="run://conkyctl toggleone mabox_info">Mini</a> <a class="tag small teal" href="run://conkyctl toggleone mabox_info">Mini</a>
<a class="tag small teal" href="run://conkyctl toggleone Info_Bar">Info Bar</a> <a class="tag small teal" href="run://conkyctl toggleone Info_Bar">Info Bar</a><br />
<a class="tag small teal" href="run://conkyctl toggleone CPU">CPU</a> <a class="tag small teal" href="run://conkyctl toggleone CPU">CPU</a>
<a class="tag small teal" href="run://conkyctl toggleone RAM">RAM</a> <a class="tag small teal" href="run://conkyctl toggleone RAM">RAM</a>
<a class="tag small teal" href="run://conkyctl toggleone mount_points">Dyski</a> <a class="tag small teal" href="run://conkyctl toggleone mount_points">Dyski</a>
<a class="tag small teal" href="run://conkyctl toggleone Network">Sieć</a><br /> <a class="tag small teal" href="run://conkyctl toggleone Network">Sieć</a><br /><br />
Edukacyjne</br /> <strong>edukacyjne</strong><br />
<a class="tag small teal" href="run://conkyctl toggleone shortcuts_mbcolor">Skróty</a> <a class="tag small teal" href="run://conkyctl toggleone shortcuts_mbcolor">Skróty</a>
<a class="tag small teal" href="run://conkyctl toggleone PCmanFM">PCmanFM</a> <a class="tag small teal" href="run://conkyctl toggleone PCmanFM">PCmanFM</a>
<a class="tag small teal" href="run://conkyctl toggleone tiling_terminal">Terminal</a> <a class="tag small teal" href="run://conkyctl toggleone tiling_terminal">Tiling Terminal</a>
<a class="tag small teal" href="run://conkyctl toggleone mabox_tools_">Narzędzia Maboxa</a><br /> <a class="tag small teal" href="run://conkyctl toggleone mabox_tools_">Narzędzia Maboxa</a><br /><br />
Zaawansowane<br /> <strong>zaawansowane</strong><br />
<a class="tag small teal" href="run://conkyctl toggleone Better_Clock">Zegar</a> <a class="tag small teal" href="run://conkyctl toggleone Better_Clock">Zegar</a>
<a class="tag small teal" href="run://conkyctl toggleone Polaroid">Polaroid</a> <a class="tag small teal" href="run://conkyctl toggleone Polaroid">Polaroid</a>
<a class="tag small teal" href="run://conkyctl toggleone quoter_">Cytaty</a> <a class="tag small teal" href="run://conkyctl toggleone quoter_">Cytaty</a>
<a class="tag small teal" href="run://conkyctl toggleone Mabox_logo_SVG">Kolorowalne Logo</a> <a class="tag small teal" href="run://conkyctl toggleone Mabox_logo_SVG">Kolorowalne Logo</a>
<a class="tag small teal" href="run://conkyctl toggleone TODOlist">TODO list</a> <a class="tag small teal" href="run://conkyctl toggleone TODOlist">TODO list</a>
</p> </p><p><hr /></p>
<p><hr /></p>
<div class="pale-green leftbar border-green"> <div class="pale-green leftbar border-green">
Użyj dynamicznego menu aby mieć dostęp do większej ilości opcji<br /> <a class="button amber" href="run://colorizer-conky -s"> Conky Manager & Colorizer</a> Potrzebujesz więcej opcji dostrajania Conky?...<br /> <a class="button amber" href="run://colorizer-conky -s"> Conky Menedżer & Colorizer</a>
</div> </div>
</div> </div>
<div class="gi2 dark"><span>Generuj motywy...</span></div> <div class="gi2 dark"><span>Generuj motywy...</span></div>
<div class="gi2 dark"><strong>Monochromatyczny</strong><br /><em>Pobierz kolor z ekranu</em><br /> <div class="gi2 dark"><strong>Monochromatyczny</strong><br /><em>Pobierz kolor z ekranu</em><br />