diff --git a/bin/mb-restore-menu b/bin/mb-restore-menu new file mode 100755 index 0000000..9be6eea --- /dev/null +++ b/bin/mb-restore-menu @@ -0,0 +1,15 @@ +#!/bin/bash +# +# Restore default Main menu + +case $LANG in + pl*) + rsync -a /usr/share/mabox/lang/pl/.config/jgmenu/ $HOME/.config/jgmenu/ + ;; + es*) + rsync -a /usr/share/mabox/lang/es/.config/jgmenu/ $HOME/.config/jgmenu/ + ;; + *) + rsync -a /usr/share/mabox/lang/en/.config/jgmenu/ $HOME/.config/jgmenu/ + ;; +esac diff --git a/bin/mcc b/bin/mcc index 9836b2c..3eb4140 100755 --- a/bin/mcc +++ b/bin/mcc @@ -271,7 +271,7 @@ yad --plug=$KEY --tabnum=7 --borders=10 \ --field="$M_CUSTOMIZE places-prepend.csv:FBTN" "geany $HOME/.config/mabox/places-prepend.csv" \ --field="$M_LEFT_DESC:LBL" "" \ --field="$M_CUSTOMIZE places-append.csv:FBTN" "geany $HOME/.config/mabox/places-append.csv" \ ---field="$M_RESTORE_MAIN:FBTN" "cp /etc/skel/.config/jgmenu/prepend.csv $HOME/.config/jgmenu/prepend.csv" \ +--field="$M_RESTORE_MAIN:FBTN" "mb-restore-menu" \ --field="$M_RIGHT:LBL" "" \ --field="$M_CUSTOMIZE right-prepend.csv:FBTN" "geany $HOME/.config/mabox/right-prepend.csv" \ --field="$M_RIGHT_DESC:LBL" "" \