From f53991882821c58974c9e86324950731dc5347b5 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Mon, 27 Apr 2026 09:30:34 +0200 Subject: [PATCH] update --- bin/mabox-logo | 4 +++ bin/mabox-profile | 70 ++++++++++++++++++++++++++++++++++++++++++++++ bin/mb-status | 5 ++-- local/bin/nitrogen | 29 +++++++++++++++++-- 4 files changed, 103 insertions(+), 5 deletions(-) create mode 100755 bin/mabox-profile diff --git a/bin/mabox-logo b/bin/mabox-logo index 6db5165..8b9f170 100755 --- a/bin/mabox-logo +++ b/bin/mabox-logo @@ -27,6 +27,10 @@ case "$1" in out_color=${4} out_opacity=${5} ;; + colors) + in_color=${2} + out_color=${3} + ;; default) in_color=#32B557 in_opacity=1 diff --git a/bin/mabox-profile b/bin/mabox-profile new file mode 100755 index 0000000..dba2db8 --- /dev/null +++ b/bin/mabox-profile @@ -0,0 +1,70 @@ +#!/bin/bash +# Daniel Napora 2026 +#: mabox-profile - change Mabox's desktop profile +#: +#: Usage: mabox-profile mabox | basic +#: +#: Profiles: +#: mabox +#: Default full featured distro profile +#: +#: basic +#: A simplified profile for non-technical users. +#: Simplified panel. +#: Some Mabox features are DISABLED, such as: +#: - clickable Conky +#: - Areaclick - launching programs by clicking the edge / corner of the screen + +AREACFG=~/.config/areaclick.conf + +T2DIR="$HOME/.config/tint2" +BASIC_TINT="$T2DIR/Istredd_basic.tint2rc" + +LNG=${LANG:0:2} +if [ ! -f "${BASIC_TINT}" ]; then +if [ -d "/usr/share/mabox/lang/$LNG/.config/tint2" ]; then +rsync -a /usr/share/mabox/lang/$LNG/.config/tint2/Istredd_basic.tint2rc ${T2DIR}/ +else +rsync -a /usr/share/mabox/lang/en/.config/tint2/Istredd_basic.tint2rc ${T2DIR}/ +fi +fi + +__usage() { + grep "^#:" $0 | while read DOC; do printf '%s\n' "${DOC###:}"; done + exit +} + +# Default profile: mabox +__mabox(){ +mb-setvar phwmon_monitor=true +t2ctl switchto ~/.config/tint2/Istredd.tint2rc +mabox-obstart phwmon +mb-setvar sidearea=10 $AREACFG +obxml margin all 2 +#phwmon on +conkyctl lclick on +conkyctl rclick on +mb-setvar profile=mabox +} + +# Simplified profile +__basic(){ +mb-setvar phwmon_monitor=false +t2ctl switchto ~/.config/tint2/Istredd_basic.tint2rc +mabox-obstart phwmon +mb-setvar sidearea=0 $AREACFG +obxml margin all 0 +# czcionki większe +conkyctl lclick off +conkyctl rclick off +mb-setvar profile=basic + +} + +case "$1" in + -h|--help|"") __usage ;; + mabox)__mabox;; + basic)__basic;; +esac + +exit 0 diff --git a/bin/mb-status b/bin/mb-status index c448347..9d300b1 100755 --- a/bin/mb-status +++ b/bin/mb-status @@ -19,8 +19,8 @@ chmod 666 "$AUR_UPDATES_LIST" fi # all config values stored here!!! -. /usr/share/mb-jgtools/jgtools.inc -#. $HOME/.config/mabox/mabox.conf + +. $HOME/.config/mabox/mabox.conf if [ -z ${disk_limit+x} ]; then mb-setvar disk_limit=90 @@ -63,6 +63,7 @@ left(){ ## MENU menu(){ +. /usr/share/mb-jgtools/jgtools.inc case $LANG in pl*) _KERNEL="jądro" diff --git a/local/bin/nitrogen b/local/bin/nitrogen index ed4918e..fcd17c9 100755 --- a/local/bin/nitrogen +++ b/local/bin/nitrogen @@ -24,9 +24,7 @@ else exit $? fi - if [[ "$wall2themes" == "yes" ]];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 + ARGS="$*" #notify-send.sh "All ARGS" "\n\n$ARGS" @@ -101,6 +99,31 @@ fi cat "$WALLPALDIR/${NAME}.clr" > "$HOME/.config/mabox/wpcolors.clr" +readarray -t w < "$HOME/.config/mabox/wpcolors.clr" + +cat < "$HOME/.config/mabox/wpcolors.svg" + + + + + + + + + + + + + + + + + + + + +EOF + # GENERATE THUMBNAIL THUMBDIR="$HOME/.cache/colorizer/thumbs" mkdir -p ${THUMBDIR}