From 72aeac1f1d154e8c6f93a4736c74a778e2d1e9bf Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Wed, 26 Feb 2020 15:15:51 +0100 Subject: [PATCH] update --- bin/mcc | 41 ++++++++++++++++-------- bin/mwelcome | 6 ++-- mcc/software/application-utility.desktop | 8 +++++ 3 files changed, 38 insertions(+), 17 deletions(-) create mode 100644 mcc/software/application-utility.desktop diff --git a/bin/mcc b/bin/mcc index aa07371..afd7cee 100755 --- a/bin/mcc +++ b/bin/mcc @@ -24,9 +24,13 @@ case $LANG in SYSTEM_DESC="Ustawienia oraz informacje systemowe i sprzętowe" MONITORS="Monitor(y)" SOFTWARE_DESC="Aktualizacja - Instalacja Programów - Preferowane programy\n" - AUTOSTART_DESC="Openbox posiada dwa mechanizmy autostartu" + AUTOSTART_DESC="Openbox używa dwóch mechanizmów autostartu.\nPierwszy z nich to systemowy autostart XDG." + AUTOSTART_DESC2="Drugim - specyficznym dla Openbox - jest skrypt ~/.config/openbox/autostart." + EDIT_XDG="Wybierz programy autostartu XDG" + EDIT_SCRIPT="Edytuj skrypt" + AUTOSTART_RESET="Przywróć domyślny skrypt autostartu" LOOK_DESC="Narzędzia do konfiguracji wyglądu\n" - EDIT_FILE="Edutuj plik" + EDIT_FILE="Edytuj plik" TINT_DESC="Konfigurator paneli tint2\nTutaj możesz wybrać konfigurację panelu Tint2.\nW Maboxie dostępne są różne konfiguracje panelu tint2, możesz również dodać własne do katalogu ~/.config/tint2." T_CONF="Konfigurator paneli tint2!!Konfiguracja wyglądu panelu" T_CHOOSE="Wybierz tint2!!Możesz uruchomić kilka paneli" @@ -36,14 +40,15 @@ case $LANG in 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.\n\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" M_LEFT="\t\t\tLEWY (ctrl+tab)" M_RIGHT="\t\t\tPRAWY (win+tab)" - M_LEFT_DESC="\nLewy panel\n - szybka nawigacja po systemie plików\n - zakładki GTK\n - maszyny wirtualne\n" - M_RIGHT_DESC="\nPrawy panel\n - ustawienia systemowe\n - pomoc\n - wyjście\n" + M_LEFT_DESC="Lewy panel\n - szybka nawigacja po systemie plików\n - zakładki GTK\n - maszyny wirtualne" + M_RIGHT_DESC="Prawy panel\n - ustawienia systemowe\n - pomoc\n - wyjście" M_CUSTOMIZE="Edytuj" COMPOSITOR="Kompozytor" - COMP_DESC="Menadżerem kompozycji w Maboxie jest Picom - fork Compton.\n Skrót klawiszowy do włączania/wyłączania menadżera kompozycji to (win+c)." + COMP_DESC="Menadżerem kompozycji w Maboxie jest Picom - fork Compton.\nSkrót klawiszowy do włączania/wyłączania menadżera kompozycji to (win+c)." COMP_GUI="Ustawienia" COMP_EDIT="Edytuj plik konfiguracyjny" COMP_RESTART="Restart" @@ -74,18 +79,23 @@ case $LANG in SYSTEM_DESC="System and Hardware settings and information" MONITORS="Monitor(s)" SOFTWARE_DESC="Software installation and update - Preferred Applications.\n" - AUTOSTART_DESC="Openbox uses two autostart methods" + AUTOSTART_DESC="Openbox uses two autostart methods.\nFirst is XDG autostart." + AUTOSTART_DESC2="Second methos is Openbox own autostart script: ~/.config/openbox/autostart. " + EDIT_XDG="Select items to autostart" + EDIT_SCRIPT="Edit script" + AUTOSTART_RESET="Reset to default autostart script" LOOK_DESC="Customize Look and Feel of your desktop.\n" EDIT_FILE="Edit file" TINT_DESC="Tint2 panels Configurator\nHere you can choose Tint2 panel(s) configuration.\nThere are some predefined configurations in Mabox, you can also add your own to ~/.config/tint2 directory." T_CONF="Configure tint2" T_CHOOSE="Choose tint2!!You can run several tint2 panels at once" T_RESTART="Restart tint2" - TINT_DIR="Open ~/.config/tint2/ in file manager " + TINT_DIR="Open ~/.config/tint2/ directory " CONKY_DESC="Conky Manager\nChoose Conky you want to run. There are several predefined Conky configurations, you can also add your own to ~/.config/conky directory." CONKY_CHOOSE="Choose Conky(s)" 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.\n\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" M_LEFT="\t\t\tLEFT (ctrl+tab)" M_RIGHT="\t\t\tRIGHT (win+tab)" @@ -145,21 +155,23 @@ yad --plug=$KEY --tabnum=1 --text="$SYSTEM_DESC" --columns=2 --align="center" -- # TAB2 Programy yad --plug=$KEY --tabnum=2 --text="$SOFTWARE_DESC" \ ---icons --compact --read-dir=/usr/share/mcc/software --item-width=100 \ +--icons --read-dir=/usr/share/mcc/software --item-width=100 \ > $res2 & #TAB 3 AUTOSTART yad --plug=$KEY --tabnum=3 --borders=20 \ ---text="Openbox autostart" \ +--text="Autostart" \ --columns=1 --form \ --field="$AUTOSTART_DESC:LBL" "" \ ---field="Autostart XDG:FBTN" "yautostart" \ ---field="$EDIT_FILE $HOME/.config/openbox/autostart:LBL" "" \ ---field="$EDIT_FILE:FBTN" "geany $HOME/.config/openbox/autostart" \ +--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 & #TAB 4 WYGLĄD -yad --plug=$KEY --tabnum=4 --text="$LOOK_DESC" --icons --compact --read-dir=/usr/share/mcc/appearance --item-width=100 \ +yad --plug=$KEY --tabnum=4 --text="$LOOK_DESC" --icons --read-dir=/usr/share/mcc/appearance --item-width=100 \ > $res4 & #TAB 5 TINT2 @@ -176,10 +188,11 @@ yad --plug=$KEY --tabnum=5 --borders=20 \ #TAB 6 CONKY yad --plug=$KEY --tabnum=6 --borders=20 \ --text="$CONKY_DESC" \ ---columns=2 --form \ +--form \ --field="$CONKY_CHOOSE:FBTN" "mb-conkyzen" \ --field="$CONKY_RESTART:FBTN" "mb-conky-session" \ --field="$CONKY_EDIT:FBTN" "mb-conkyedit" \ +--field="$OPEN_CONKYDIR:FBTN" "exo-open $HOME/.config/conky/" \ > $res6 & # TAB 7 MENU diff --git a/bin/mwelcome b/bin/mwelcome index a31eb8f..2008331 100755 --- a/bin/mwelcome +++ b/bin/mwelcome @@ -38,7 +38,7 @@ Poniższe odnośniki pomogą Ci w rozpoczęciu używania nowego systemu. UPDATE="Uaktualnij system" UPDATE_LBL="Aktualizacja systemu" ADD_KERNEL="Dodatkowe jądro!!Dobrą praktyką jest instakacja dodatkowego kernela. Kliknij, aby wybrać i zainstalować:FBTN" - RELNOTES="Informacje o wydaniu:FBTN" + RELNOTES="Popularne programy!!Instalacja najpopularniejszych programów:FBTN" RESOURCES="ZASOBY" QUICKSTART="Przewodnik użytkownika" WWW="Strona WWW" @@ -56,7 +56,7 @@ Poniższe odnośniki pomogą Ci w rozpoczęciu używania nowego systemu. UPDATE="Update system" UPDATE_LBL="System update" ADD_KERNEL="Add Kernel!!It is good practice to have more than one kernel installed. We suggest to keep LTS one and install newer one.:FBTN" - RELNOTES="Release Notes:FBTN" + RELNOTES="Pulular Apps!!Install popular applications:FBTN" RESOURCES="RESOURCES" QUICKSTART="Quick Start Guide" WWW="Website" @@ -81,7 +81,7 @@ values=($(yad --window-icon=distributor-logo-mabox --center --undecorated --but --field="START:LBL" ""\ --field="$UPDATE:FBTN" "pamac-manager --updates" \ --field="$ADD_KERNEL" "manjaro-settings-manager -m msm_kernel" \ - --field="$RELNOTES" ""\ + --field="$RELNOTES" "manjaro-application-utility"\ --field=" :LBL" ""\ --field="$RESOURCES:LBL" ""\ --field="$QUICKSTART:FBTN" "bash -c userguide"\ diff --git a/mcc/software/application-utility.desktop b/mcc/software/application-utility.desktop new file mode 100644 index 0000000..9d188f3 --- /dev/null +++ b/mcc/software/application-utility.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Install Popular Applicationsy +Name[pl]=Instaluj Majpopularniejsze Programy +Comment=Manjaro Application Utility +Categories=Utility; +Exec=/usr/bin/manjaro-application-utility +Icon=system-software-install