update
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user