From 41c42c4b8841502d017df23cf0d710be349ec514 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Tue, 31 Aug 2021 16:06:43 +0200 Subject: [PATCH] mcc,mwelcome update --- bin/mcc | 71 ++++++++++++++++++++++++++++++---------------------- bin/mwelcome | 2 +- 2 files changed, 42 insertions(+), 31 deletions(-) diff --git a/bin/mcc b/bin/mcc index bd4ee33..9449c51 100755 --- a/bin/mcc +++ b/bin/mcc @@ -1,12 +1,12 @@ #!/bin/bash # mcc: Mabox Control Center -# Copyright (C) 2019-2020 napcok +# Copyright (C) 2019-2021 napcok # EDITOR=geany case $LANG in pl*) TITLE="Centrum Sterowania Mabox" - MCC="\t\t\t\t\t\t\t Centrum Sterowania Mabox\n\t\t\t\t\t\t Konfigurator wyglądu i zachowania Maboxa." + MCC="Centrum Sterowania Mabox\t\nSkonfiguruj wygląd i zachowanie swojego Maboxa\t" SYSTEM="System i Sprzęt" LOCALE_SETTINGS="Język i formaty" LANGUAGE_PACKAGES="Pakiety językowe" @@ -22,12 +22,14 @@ case $LANG in TINT2="Panel Tint2" SETTINGS="Ustawienia" CONKY="Conky" - MENU="Menu i PaneleBoczne" + MENU="Menu i Panele" THEMES="Motywy" + HELP="Pomoc" + HELP_TXT="Visit Mabox Linux Manual to learn more about Mabox. \nDo you have questions? Want to get involved?\nTake a look at our: official website, forum, blog\n \nMabox Linux is developed with passion in spare time.\nMabox is free and it will always be.\nHowever, maintaining the project's infrastructure costs money.\nIf you like Mabox you can help by making a small donation \nThank you for choosing to use Mabox Linux!" SYSTEM_DESC="Ustawienia oraz informacje systemowe i sprzętowe" MONITORS="Monitor(y)" SOFTWARE_DESC="Aktualizacja - Instalacja Programów - Preferowane programy\n" - AUTOSTART_DESC="Openbox używa dwóch mechanizmów autostartu.\nPierwszy z nich to systemowy autostart XDG." + AUTOSTART_DESC="Openbox używa dwóch mechanizmów autostartu.\nPierwszy z nich to autostart XDG." AUTOSTART_DESC2="Drugim - specyficznym dla Openbox - jest skrypt ~/.config/openbox/autostart." EDIT_XDG="Wybierz programy autostartu XDG" EDIT_SCRIPT="Edytuj skrypt" @@ -40,12 +42,12 @@ case $LANG in T_RESTART="Restartuj panel(e)" T_LAUNCHERS="Dodaj/usuń programy do panelu" TINT_DIR="Otwórz katalog ~/.config/tint2/ w menadżerze plików" - CONKY_DESC="Menedżer Conky\nWybierz uruchamiane Conky. W Maboxie dostępnych jest kilka konfiguracji Conky, możesz dodać własne do katalogu ~/.config/conky.\n" + CONKY_DESC="Menedżer Conky\nWybierz uruchamiane Conky. W Maboxie dostępnych jest kilka konfiguracji Conky, możesz dodać własne do katalogu ~/.config/conky." CONKY_CHOOSE="Wybierz Conky" CONKY_RESTART="Restartuj Conky" CONKY_EDIT="Edytuj Conky" OPEN_CONKYDIR="Otwórz katalog ~/.config/conky" - MENU_DESC="Główne menu (wywoływane przez: prawy klik, skrót win+spacja lub z ikony w panelu) umożliwia wyszukiwanie, należy po prostu zacząć pisać np. nazwę programu.\nDostępne są również dwa panele boczne, umożliwiające szybki dostęp np. do systemu plików.\nPoniżej możesz dodać swoje własne polecenia na początku i na końcu paneli bocznych.\n" + MENU_DESC="Główne menu (wywoływane przez: prawy klik, skrót win+spacja lub z ikony w panelu) umożliwia wyszukiwanie, należy po prostu zacząć pisać np. nazwę programu.\nDostępne są również dwa panele boczne, umożliwiające szybki dostęp np. do systemu plików.\nPoniżej możesz dodać swoje własne polecenia na początku i na końcu paneli bocznych." M_EDIT_MAIN="Edytuj główne menu (ulubione)" M_RESTORE_MAIN="Przywróć domyślne menu" M_LEFT="\t\t\tPANEL LEWY (ctrl+super+left)" @@ -64,11 +66,11 @@ case $LANG in COMP_REMOVE="Usuń plik konfiguracyjny" COMP_DEFAULT="Przywróć domyślny plik konfiguracyjny" MT_MNGR="Menedżer Motywów Maboxa" - MT_MNGR_DESC="\nMotyw Maboxa składa się z:\n - tapety\n - wystroju GTK2/GTK3\n - motywu Openboxa\n - ustawień panelu Tint2\n - uruchamianych automatycznie Conky\n\nZa pomocą menedżera motywów możesz w wygodny sposób zapisywać swoje konfiguracje Maboxa, a następnie dowolnie przełączać się między nimi.\n" + MT_MNGR_DESC="\nMotyw Maboxa składa się z:\n - tapety\n - wystroju GTK2/GTK3 oraz obramowania okien Openboxa\n - ustawień panelu Tint2\n - uruchamianych automatycznie Conky \n\nZa pomocą menedżera motywów możesz w wygodny sposób zapisywać swoje konfiguracje, a następnie dowolnie przełączać się między nimi." ;; es*) TITLE="Centro de control Mabox" - MCC="\t\t\t\t\t\t\t\t Centro de control Mabox\n\t\t\t\t\t\t\t Configura y ajusta tu sistema Mabox" + MCC="Centro de control Mabox\t\t\nConfigura y ajusta tu sistema Mabox\t\t" SYSTEM="Sistema/Hardware" LOCALE_SETTINGS="Configuración regional" LANGUAGE_PACKAGES="Paquetes de idiomas" @@ -86,6 +88,8 @@ case $LANG in CONKY="Recuadro Conky" MENU="Menú y Paneles" THEMES="Temas" + HELP="Help" + HELP_TXT="Visit Mabox Linux Manual to learn more about Mabox. \nDo you have questions? Want to get involved?\nTake a look at our: official website, forum, blog\n \nMabox Linux is developed with passion in spare time.\nMabox is free and it will always be.\nHowever, maintaining the project's infrastructure costs money.\nIf you like Mabox you can help by making a small donation \nThank you for choosing to use Mabox Linux!" SYSTEM_DESC="Ajustes e información del sistema y de hardware" MONITORS="Monitor(es)" SOFTWARE_DESC="Instalación y actualización de programas - Aplicaciones preferidas.\n" @@ -107,7 +111,7 @@ case $LANG in CONKY_RESTART="Recargar recuadro Conky" CONKY_EDIT="Editar recuadro Conky" OPEN_CONKYDIR="Abrir la carpeta ~/.config/conky " - MENU_DESC="Menu principal (accede con clic derecho, teclas Super+barra de espacio o desde el ícono del panel) activa escribe sobre buscar. Sólo empieza a escribir el término que estas buscando.\nThere are also two side-panels available for quick access to file system locations for example. Below you can add custom commands to both side-panels.\n" + MENU_DESC="Menu principal (accede con clic derecho, teclas Super+barra de espacio o desde el ícono del panel) activa escribe sobre buscar. Sólo empieza a escribir el término que estas buscando.\nThere are also two side-panels available for quick access to file system locations for example. Below you can add custom commands to both side-panels." M_EDIT_MAIN="Editar menu principal" M_RESTORE_MAIN="Reestablecer el menu por defecto" M_LEFT="\t\t\tPANEL IZQUIERDO (ctrl+super+left)" @@ -130,8 +134,8 @@ case $LANG in ;; *) TITLE="Mabox Control Center" - MCC="\t\t\t\t\t\t\t\t Mabox Control Center\n\t\t\t\t\t\t Configure and customize your Mabox" - SYSTEM="System/Hardware" + MCC="Mabox Control Center\t\t\nConfigure and customize your Mabox Linux\t" + SYSTEM="System/HW" LOCALE_SETTINGS="Locale Settings" LANGUAGE_PACKAGES="Language Packages" KERNEL="Kernel" @@ -146,8 +150,10 @@ case $LANG in TINT2="Tint2 Panel" SETTINGS="Settings" CONKY="Conky" - MENU="Menu and SidePanels" + MENU="Menu/Panels" THEMES="Themes" + HELP="Help" + HELP_TXT="Visit Mabox Linux Manual to learn more about Mabox. \nDo you have questions? Want to get involved?\nTake a look at our: official website, forum, blog\n \nMabox Linux is developed with passion in spare time.\nMabox is free and it will always be.\nHowever, maintaining the project's infrastructure costs money.\nIf you like Mabox you can help by making a small donation \nThank you for choosing to use Mabox Linux!" SYSTEM_DESC="System and Hardware settings and information" MONITORS="Monitor(s)" SOFTWARE_DESC="Software installation and update - Preferred Applications.\n" @@ -169,7 +175,7 @@ case $LANG in CONKY_RESTART="Reload Conky" CONKY_EDIT="Edit Conky" OPEN_CONKYDIR="Open ~/.config/conky directory" - MENU_DESC="Main menu (access it by right click, win+space shortcut or from panel icon) have type to search functionality. Just start to type what you looking for.\nThere are also two side-panels available for quick access to file system locations for example. Below you can add custom commands to both side-panels.\n" + MENU_DESC="Main menu (access it by right click, win+space shortcut or from panel icon) have type to search functionality. Just start to type what you looking for.\nThere are also two side-panels available for quick access to file system locations for example. Below you can add custom commands to both side-panels." M_EDIT_MAIN="Edit main menu (favorites)" M_RESTORE_MAIN="Reset mainmenu to default" M_LEFT="\t\t\tLEFT PANEL (ctrl+super+left)" @@ -188,7 +194,7 @@ case $LANG in COMP_REMOVE="Remove picom.conf" COMP_DEFAULT="Reset to default" MT_MNGR="Mabox Theme Manager" - MT_MNGR_DESC="\nMabox theme consist of:\n - wallpaper\n - GTK2/GTK3 Theme\n - Openbox theme and settings\n - selected Tint2 panel(s)\n - selected Conkies\n\nWith Mabox Theme Manager you can easily save your configurations, and switch between them." + MT_MNGR_DESC="\nMabox theme consist of:\n - wallpaper\n - GTK2/GTK3 Theme and Openbox window decoration \n - selected Tint2 panel(s)\n - selected Conkies \n\nWith Mabox Theme Manager you can easily save your configurations, and switch between them." ;; esac @@ -214,14 +220,15 @@ maindialog () { res7=$(mktemp --tmpdir mcc-tab7.XXXXXXXX) res8=$(mktemp --tmpdir mcc-tab8.XXXXXXXX) res9=$(mktemp --tmpdir mcc-tab9.XXXXXXXX) + res10=$(mktemp --tmpdir mcc-tab10.XXXXXXXX) out=$(mktemp --tmpdir mcc-out.XXXXXXXX) # cleanup -trap "rm -f $res1 $res2 $res3 $res4 $res5 $res6 $res7 $res8 $res9 $out" EXIT +trap "rm -f $res1 $res2 $res3 $res4 $res5 $res6 $res7 $res8 $res9 $res10 $out" EXIT # TAB1 SYSTEM_SPRZET -yad --plug=$KEY --tabnum=1 --text="$SYSTEM_DESC" --columns=2 --align="center" --form --borders=10 \ +yad --plug=$KEY --tabnum=1 --text="$SYSTEM_DESC" --columns=2 --align="center" --form --scroll \ --field="$SETTINGS:LBL" " " \ --field="$LOCALE_SETTINGS:FBTN" "manjaro-settings-manager -m msm_locale" \ --field="$LANGUAGE_PACKAGES:FBTN" "manjaro-settings-manager -m msm_language_packages" \ @@ -241,28 +248,27 @@ yad --plug=$KEY --tabnum=1 --text="$SYSTEM_DESC" --columns=2 --align="center" -- > $res1 & # TAB2 Programy -yad --plug=$KEY --tabnum=2 --text="$SOFTWARE_DESC" \ +yad --plug=$KEY --tabnum=2 --borders=10 --text="$SOFTWARE_DESC" \ --icons --read-dir=/usr/share/mcc/software --item-width=100 \ > $res2 & #TAB 3 AUTOSTART -yad --plug=$KEY --tabnum=3 --borders=20 \ +yad --plug=$KEY --tabnum=3 --borders=10 \ --text="$AUTOSTART_HEAD" --image=gtk-execute \ --columns=1 --form \ --field="$AUTOSTART_DESC:LBL" "" \ --field="$EDIT_XDG:FBTN" "yautostart" \ ---field=":LBL" "" \ --field="$AUTOSTART_DESC2 :LBL" "" \ --field="$EDIT_SCRIPT ~/.config/openbox/autostart:FBTN" "geany $HOME/.config/openbox/autostart" \ --field="$AUTOSTART_RESET:FBTN" "cp /etc/skel/.config/openbox/autostart $HOME/.config/openbox/" \ > $res3 & - +#--field=":LBL" "" \ #TAB 4 WYGLĄD yad --plug=$KEY --tabnum=4 --text="$LOOK_DESC" --icons --read-dir=/usr/share/mcc/appearance --item-width=100 \ > $res4 & #TAB 5 TINT2 -yad --plug=$KEY --tabnum=5 --borders=20 \ +yad --plug=$KEY --tabnum=5 --borders=10 \ --text="$TINT_DESC" --image=tint2conf \ --columns=1 --form \ --field="$T_CHOOSE:FBTN" "mb-tint2-manager" \ @@ -274,7 +280,7 @@ yad --plug=$KEY --tabnum=5 --borders=20 \ > $res5 & #TAB 6 CONKY -yad --plug=$KEY --tabnum=6 --borders=20 \ +yad --plug=$KEY --tabnum=6 --borders=10 \ --text="$CONKY_DESC" --image=conky \ --form \ --field="$CONKY_CHOOSE:FBTN" "mb-conky-manager" \ @@ -290,17 +296,16 @@ yad --plug=$KEY --tabnum=7 --borders=10 \ --field="$M_EDIT_MAIN:FBTN" "geany $HOME/.config/mabox/favorites.csv" \ --field="$M_LEFT:LBL" "" \ --field="$M_CUSTOMIZE $OWN_COMMANDS_TOP:FBTN" "geany $HOME/.config/mabox/places-prepend.csv" \ ---field="$M_LEFT_DESC:LBL" "" \ --field="$M_CUSTOMIZE $OWN_COMMANDS_BOTTOM:FBTN" "geany $HOME/.config/mabox/places-append.csv" \ --field="$M_RESTORE_MAIN:FBTN" "mb-restore-menu" \ --field="$M_RIGHT:LBL" "" \ --field="$M_CUSTOMIZE $OWN_COMMANDS_TOP:FBTN" "geany $HOME/.config/mabox/right-prepend.csv" \ ---field="$M_RIGHT_DESC:LBL" "" \ --field="$M_CUSTOMIZE $OWN_COMMANDS_BOTTOM:FBTN" "geany $HOME/.config/mabox/right-append.csv" \ > $res7 & - +#--field="$M_LEFT_DESC:LBL" "" \ +#--field="$M_RIGHT_DESC:LBL" "" \ #TAB 8 Picom -yad --plug=$KEY --tabnum=8 --borders=20 \ +yad --plug=$KEY --tabnum=8 --borders=10 \ --text="$COMP_DESC" --image=compton \ --columns=1 --form \ --field="$COMP_EDIT:FBTN" "$EDITOR $HOME/.config/picom.conf" \ @@ -317,13 +322,19 @@ yad --plug=$KEY --tabnum=9 --borders=10 \ --form --field="$MT_MNGR!preferences-desktop-theme:FBTN" "mb-obthemes" \ > $res9 & +#TAB 10 -HELP +yad --plug=$KEY --tabnum=10 \ +--image=/usr/share/icons/hicolor/128x128/apps/distributor-logo-mabox-trans.png --text-justify=center --text="$HELP_TXT" \ +> $res10 & + #main window yad --window-icon=distributor-logo-mabox \ --notebook --tab-pos="left" --key=$KEY \ - --tab="$SYSTEM" --tab="$SOFTWARE" --tab="$AUTOSTART" --tab="$LOOK" --tab="$TINT2"\ - --tab="$CONKY" --tab="$MENU" --tab="$COMPOSITOR" --tab="$THEMES" \ - --title="$TITLE" --image=/usr/share/icons/hicolor/64x64/apps/distributor-logo-mabox.png \ - --width=710 --height=420 --image-on-top --text="$MCC" --no-buttons > $out & + --tab="$SYSTEM" \ + --tab="$SOFTWARE" --tab="$AUTOSTART" --tab="$LOOK" --tab="$TINT2"\ + --tab="$CONKY" --tab="$MENU" --tab="$COMPOSITOR" --tab="$THEMES" --tab="$HELP"\ + --title="$TITLE" --image=/usr/share/icons/hicolor/48x48/apps/distributor-logo-mabox.png \ + --width="720" --height="420" --image-on-top --text-justify=right --text="$MCC" --no-buttons > $out & } maindialog diff --git a/bin/mwelcome b/bin/mwelcome index d899242..4dcce5c 100755 --- a/bin/mwelcome +++ b/bin/mwelcome @@ -21,7 +21,7 @@ exo-open --launch WebBrowser https://maboxlinux.org } export -f homewww function userguide() { -exo-open --launch WebBrowser https://maboxlinux.org/users-guide/ +exo-open --launch WebBrowser https://manual.maboxlinux.org/mabox-doc-en/ } export -f userguide ;;