update
This commit is contained in:
@@ -26,6 +26,10 @@ case "$1" in
|
|||||||
in_opacity=${3}
|
in_opacity=${3}
|
||||||
out_color=${4}
|
out_color=${4}
|
||||||
out_opacity=${5}
|
out_opacity=${5}
|
||||||
|
;;
|
||||||
|
colors)
|
||||||
|
in_color=${2}
|
||||||
|
out_color=${3}
|
||||||
;;
|
;;
|
||||||
default)
|
default)
|
||||||
in_color=#32B557
|
in_color=#32B557
|
||||||
|
|||||||
70
bin/mabox-profile
Executable file
70
bin/mabox-profile
Executable file
@@ -0,0 +1,70 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Daniel Napora 2026 <danieln@maboxlinux.org>
|
||||||
|
#: 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
|
||||||
@@ -19,8 +19,8 @@ chmod 666 "$AUR_UPDATES_LIST"
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# all config values stored here!!!
|
# 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
|
if [ -z ${disk_limit+x} ]; then
|
||||||
mb-setvar disk_limit=90
|
mb-setvar disk_limit=90
|
||||||
@@ -63,6 +63,7 @@ left(){
|
|||||||
|
|
||||||
## MENU
|
## MENU
|
||||||
menu(){
|
menu(){
|
||||||
|
. /usr/share/mb-jgtools/jgtools.inc
|
||||||
case $LANG in
|
case $LANG in
|
||||||
pl*)
|
pl*)
|
||||||
_KERNEL="jądro"
|
_KERNEL="jądro"
|
||||||
|
|||||||
@@ -24,9 +24,7 @@ else
|
|||||||
exit $?
|
exit $?
|
||||||
fi
|
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="$*"
|
ARGS="$*"
|
||||||
#notify-send.sh "All ARGS" "\n\n$ARGS"
|
#notify-send.sh "All ARGS" "\n\n$ARGS"
|
||||||
|
|
||||||
@@ -101,6 +99,31 @@ fi
|
|||||||
|
|
||||||
cat "$WALLPALDIR/${NAME}.clr" > "$HOME/.config/mabox/wpcolors.clr"
|
cat "$WALLPALDIR/${NAME}.clr" > "$HOME/.config/mabox/wpcolors.clr"
|
||||||
|
|
||||||
|
readarray -t w < "$HOME/.config/mabox/wpcolors.clr"
|
||||||
|
|
||||||
|
cat <<EOF > "$HOME/.config/mabox/wpcolors.svg"
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="272" height="270">
|
||||||
|
<defs>
|
||||||
|
<filter id="f1">
|
||||||
|
<feDropShadow dx="2" dy="2" stdDeviation="1" flood-opacity="0.6"/>
|
||||||
|
</filter>
|
||||||
|
</defs>
|
||||||
|
<rect x="0" y="0" width="270" height="150" fill="#EEE" filter="url(#f1)" />
|
||||||
|
<rect x="1" y="156" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[0]}" filter="url(#f1)" />
|
||||||
|
<rect x="70" y="156" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[1]}" filter="url(#f1)" />
|
||||||
|
<rect x="139" y="156" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[2]}" filter="url(#f1)" />
|
||||||
|
<rect x="208" y="156" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[3]}" filter="url(#f1)" />
|
||||||
|
<rect x="1" y="196" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[4]}" filter="url(#f1)" />
|
||||||
|
<rect x="70" y="196" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[5]}" filter="url(#f1)" />
|
||||||
|
<rect x="139" y="196" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[6]}" filter="url(#f1)" />
|
||||||
|
<rect x="208" y="196" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[-5]}" filter="url(#f1)" />
|
||||||
|
<rect x="1" y="235" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[-4]}" filter="url(#f1)" />
|
||||||
|
<rect x="70" y="235" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[-3]}" filter="url(#f1)" />
|
||||||
|
<rect x="139" y="235" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[-2]}" filter="url(#f1)" />
|
||||||
|
<rect x="208" y="235" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[-1]}" filter="url(#f1)" />
|
||||||
|
</svg>
|
||||||
|
EOF
|
||||||
|
|
||||||
# GENERATE THUMBNAIL
|
# GENERATE THUMBNAIL
|
||||||
THUMBDIR="$HOME/.cache/colorizer/thumbs"
|
THUMBDIR="$HOME/.cache/colorizer/thumbs"
|
||||||
mkdir -p ${THUMBDIR}
|
mkdir -p ${THUMBDIR}
|
||||||
|
|||||||
Reference in New Issue
Block a user