system, office

master
Daniel Napora 2017-01-02 21:39:45 +01:00
parent 84c0183f8e
commit 60ee68eda8
1 changed files with 23 additions and 1 deletions

View File

@ -24,6 +24,7 @@ case $LANG in
LAUNCH="Uruchom"
GRAPHICS="Grafika"
GAMES="Gry"
OFFICE="Biuro"
REG_MENU="Regeneruj Menu"
;;
*)
@ -39,7 +40,8 @@ case $LANG in
INSTALLING="Installing"
LAUNCH="Launch"
GRAPHICS="Graphics"
GAMES="Gry"
GAMES="Games"
OFFICE="Office"
REG_MENU="Regenerate Menu"
;;
esac
@ -106,6 +108,26 @@ for curApp in "${gry[@]}"; do
fi
done
menuSubmenuEnd
menuSubmenu 'system' "System"
system=('manjaro-printer' 'bleachbit' 'virtualbox')
for curApp in "${system[@]}"; do
if ! type "$curApp" &> /dev/null; then
menuItem "$INSTALL ${curApp^}" "terminator --title='$INSTALLING ${curApp^}' --command='sudo pacman -S $curApp'"
else
menuItem "$LAUNCH ${curApp^}" "$curApp"
fi
done
menuSubmenuEnd
menuSubmenu 'office' "$OFFICE"
system=('abiword' 'gnumeric' 'libreoffice-still' 'cherrytree' 'zim')
for curApp in "${system[@]}"; do
if ! type "$curApp" &> /dev/null; then
menuItem "$INSTALL ${curApp^}" "terminator --title='$INSTALLING ${curApp^}' --command='sudo pacman -S $curApp'"
else
menuItem "$LAUNCH ${curApp^}" "$curApp"
fi
done
menuSubmenuEnd
menuSeparator
menuItem "$REG_MENU" "mb-regenerate-menu"
menuEnd