master
Daniel Napora 2020-02-27 19:01:40 +01:00
parent d7f7617513
commit 19808a3c8b
2 changed files with 17 additions and 11 deletions

View File

@ -133,9 +133,9 @@ case $LANG in
*)
TITLE="BLOB Config Manager"
CANCEL="--button=gtk-cancel:1"
EXIT="--button=gtk-quit:1"
CLOSE="--button=gtk-close:1"
CANCEL="--button=Cancel:1"
EXIT="--button=Quit:1"
CLOSE="--button=Close:1"
TXTINTRO="<big><b>BunsenLabs\n\nOpenbox Configuration Manager</b></big>\n\n\n \
<b>Save or Restore settings for:</b>\n\n \
\tOpenbox theme\n \
@ -190,7 +190,7 @@ OK="--button=OK:0"
IMGCMD="viewnior" # application command to view screenshot
MENUMODIFIER="super+space" # keybind for show root-menu
MOUSECMD="click 3" # mouse r-click
KEYDOWN=13 # adjust this for where "Preferences" is in the menu
KEYDOWN=5 # adjust this for where "Preferences" is in the menu
#### END VARIABLES #####################################################
### FUNCTIONS ##########################################################

20
bin/mcc
View File

@ -4,7 +4,7 @@
EDITOR=geany
case $LANG in
pl*)
MCC="\t\t\t\t\t\t <big>Mabox Control Center</big>\n\t\t\t\t Konfigurator wyglądu i zachowania Maboxa."
MCC="\t\t\t\t\t\t\t <big>Centrum Sterowania Mabox</big>\n\t\t\t\t\t\t Konfigurator wyglądu i zachowania Maboxa."
SYSTEM="System i Sprzęt"
LOCALE_SETTINGS="Język i formaty"
LANGUAGE_PACKAGES="Pakiety językowe"
@ -41,9 +41,11 @@ case $LANG in
CONKY_RESTART="Restartuj Conky"
CONKY_EDIT="Edytuj Conky"
OPEN_CONKYDIR="Otwórz katalog <i>~/.config/conky</i>"
MENU_DESC="Główne menu (<small>wywoływane przez: prawy klik, skrót win+spacja lub z ikony w panelu</small>) umożliwia wyszukiwanie, należy po prostu zacząć pisać np. nazwę programu.\n\n<small><i>Dostępne są również dwa <b>panele boczne</b>, umożliwiające szybki dostęp np. do systemu plików.</i>\nPoniżej możesz dodać swoje własne polecenia na początku i na końcu paneli bocznych.</small>\n"
M_LEFT="\t\t\t<b>LEWY</b><small> (ctrl+tab)</small>"
M_RIGHT="\t\t\t<b>PRAWY</b><small> (win+tab)</small>"
MENU_DESC="Główne menu (<small>wywoływane przez: prawy klik, skrót win+spacja lub z ikony w panelu</small>) umożliwia wyszukiwanie, należy po prostu zacząć pisać np. nazwę programu.\n<small><i>Dostępne są również dwa <b>panele boczne</b>, umożliwiające szybki dostęp np. do systemu plików.</i>\nPoniżej możesz dodać swoje własne polecenia na początku i na końcu paneli bocznych.</small>\n"
M_EDIT_MAIN="Edytuj główne menu"
M_RESTORE_MAIN="Przywróć domyślne menu"
M_LEFT="\t\t\t<b>PANEL LEWY</b><small> (ctrl+tab)</small>"
M_RIGHT="\t\t\t<b>PANEL PRAWY</b><small> (win+tab)</small>"
M_LEFT_DESC="<small>Lewy panel\n - szybka nawigacja po systemie plików\n - zakładki GTK\n - maszyny wirtualne</small>"
M_RIGHT_DESC="<small>Prawy panel\n - ustawienia systemowe\n - pomoc\n - wyjście</small>"
M_CUSTOMIZE="Edytuj"
@ -59,7 +61,7 @@ case $LANG in
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"
;;
*)
MCC="\t\t\t\t\t\t <big>Mabox Control Center</big>\n\t\t\t\t "
MCC="\t\t\t\t\t\t\t <big>Mabox Control Center</big>\n\t\t\t\t\t "
SYSTEM="System and Hardware"
LOCALE_SETTINGS="Locale Settings"
LANGUAGE_PACKAGES="Language Packages"
@ -96,7 +98,9 @@ case $LANG in
CONKY_RESTART="Reload Conky"
CONKY_EDIT="Edit Conky"
OPEN_CONKYDIR="Open <i>~/.config/conky</i> directory"
MENU_DESC="Main menu (<small>access it by right click, win+space shortcut or from panel icon</small>) have type to search functionality. Just start to type what you looking for.\n\n<small><i>There are also two <b>side-panels</b> available for quick access to file system locations for example.</i> Below you can add custom commands to both side-panels.</small>\n"
MENU_DESC="Main menu (<small>access it by right click, win+space shortcut or from panel icon</small>) have type to search functionality. Just start to type what you looking for.\n<small><i>There are also two <b>side-panels</b> available for quick access to file system locations for example.</i> Below you can add custom commands to both side-panels.</small>\n"
M_EDIT_MAIN="Edit main menu"
M_RESTORE_MAIN="Reset mainmenu to default"
M_LEFT="\t\t\t<b>LEFT</b><small> (ctrl+tab)</small>"
M_RIGHT="\t\t\t<b>RIGHT</b><small> (win+tab)</small>"
M_LEFT_DESC="<small>Left panel\n - quick navigation\n - GTK Bookmarks\n - Virtualbox machines</small>"
@ -199,10 +203,12 @@ yad --plug=$KEY --tabnum=6 --borders=20 \
yad --plug=$KEY --tabnum=7 \
--text="$MENU_DESC" \
--columns=2 --form \
--field="$M_EDIT_MAIN:FBTN" "geany $HOME/.config/jgmenu/prepend.csv" \
--field="$M_LEFT:LBL" "" \
--field="$M_CUSTOMIZE left-prepend.csv:FBTN" "geany $HOME/.config/mabox/left-prepend.csv" \
--field="$M_LEFT_DESC:LBL" "" \
--field="$M_CUSTOMIZE left-append.csv:FBTN" "geany $HOME/.config/mabox/left-append.csv" \
--field="$M_RESTORE_MAIN:FBTN" "cp /etc/skel/.config/jgmenu/prepend.csv $HOME/.config/jgmenu/prepend.csv" \
--field="$M_RIGHT:LBL" "" \
--field="$M_CUSTOMIZE right-prepend.csv:FBTN" "geany $HOME/.config/mabox/right-prepend.csv" \
--field="$M_RIGHT_DESC:LBL" "" \
@ -227,7 +233,7 @@ yad --plug=$KEY --tabnum=9 --borders=2 \
> $res9 &
#main window
yad --window-icon=utilities-terminal \
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" \