From 7149da49fb350fba9f2dc7b6d30ffac06971c3db Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Wed, 2 Sep 2020 21:18:11 +0200 Subject: [PATCH] fix restore main menu to default --- bin/mb-restore-menu | 15 +++++++++++++++ bin/mcc | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 bin/mb-restore-menu 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" "" \