fix restore main menu to default

master
Daniel Napora 2020-09-02 21:18:11 +02:00
parent a391e99c32
commit 7149da49fb
2 changed files with 16 additions and 1 deletions

View File

@ -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

View File

@ -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" "" \