mabox-pipemenus/usr/bin/jgsoftware-pipe

89 lines
3.4 KiB
Plaintext
Raw Normal View History

2020-09-05 21:50:15 +02:00
#!/bin/bash
case $LANG in
pl*)
declare -a Internet=(chromium opera palemoon thunderbird filezilla deluge telegram-desktop)
declare -a Multimedia=(kodi vlc obs-studio audacious smplayer simplescreenrecorder)
declare -a Grafika=(gimp inkscape blender flameshot)
declare -a Gry=(wesnoth steam-manjaro lutris playonlinux )
declare -a Biuro=(abiword gnumeric)
declare -a Ebook=(calibre fbreader)
2020-10-01 11:48:08 +02:00
declare -a Backup=(timeshift)
2020-09-05 21:50:15 +02:00
declare -a Wirtualizacja=(virtualbox gnome-boxes)
declare -a categories=(Internet Multimedia Grafika Biuro Ebook Gry Backup Wirtualizacja)
INSTALL="Instaluj"
LAUNCH="Uruchom"
TITLE="Popularne programy"
INSTALL_PRINT="Instaluj manjaro printer"
CONFIGURE_PRINT="Konfiguracja drukarek"
REMOVE="Usuń to menu z panelu"
;;
es*)
declare -a Internet=(chromium opera palemoon thunderbird filezilla deluge telegram-desktop)
declare -a Multimedia=(kodi vlc obs-studio audacious smplayer simplescreenrecorder)
2020-09-07 23:22:48 +02:00
declare -a Graficos=(gimp inkscape blender flameshot)
2020-09-07 22:56:19 +02:00
declare -a Juegos=(wesnoth steam-manjaro lutris playonlinux )
declare -a Oficina=(abiword gnumeric)
2020-09-07 23:22:48 +02:00
declare -a LibrosE=(calibre fbreader)
2020-10-01 11:48:08 +02:00
declare -a Respaldo=(timeshift)
2020-09-07 23:22:48 +02:00
declare -a Virtualizacion=(virtualbox gnome-boxes)
declare -a categories=(Internet Multimedia Graficos Juegos Oficina LibrosE Respaldo Virtualizacion)
2020-09-05 21:50:15 +02:00
INSTALL="Instalar"
LAUNCH="Abrir"
TITLE="Programas populares"
INSTALL_PRINT="Instalar soporte de impresión"
CONFIGURE_PRINT="Configurar impresoras"
REMOVE="Eliminar este menú del panel"
;;
*)
declare -a Internet=(chromium opera palemoon-bin thunderbird filezilla deluge telegram-desktop)
declare -a Multimedia=(kodi vlc obs-studio audacious smplayer simplescreenrecorder)
declare -a Graphics=(gimp inkscape blender flameshot)
declare -a Games=(wesnoth steam-manjaro lutris playonlinux )
declare -a Office=(abiword gnumeric)
declare -a Ebook=(calibre fbreader)
2020-10-01 11:48:08 +02:00
declare -a Backup=(timeshift)
2020-09-05 21:50:15 +02:00
declare -a Virtualization=(virtualbox gnome-boxes)
declare -a categories=(Internet Multimedia Graphics Office Ebook Games Backup Virtualization)
INSTALL="Install"
LAUNCH="Launch"
TITLE="Popular programs"
INSTALL_PRINT="Install Printing Support"
CONFIGURE_PRINT="Configure Printers"
REMOVE="Remove this menu from panel"
;;
esac
menus+=("^sep($TITLE)")
# Printing
if type 'system-config-printer' &> /dev/null; then
2020-09-21 14:43:15 +02:00
menus+=("$CONFIGURE_PRINT,gksu system-config-printer")
2020-09-05 21:50:15 +02:00
else
menus+=("$INSTALL_PRINT,pamac-installer manjaro-printing")
fi
menus+=("^sep()")
# All categories
for group in "${categories[@]}"; do
lst="$group[@]"
menus+=("${group},^checkout(${group})")
lines+=("^tag(${group})")
for element in "${!lst}"; do
if ! type "$element" &> /dev/null; then
lines+=("$INSTALL ${element^},pamac-installer $element")
else
lines+=("$LAUNCH ${element^},$element")
fi
done
done
menus+=("^sep()")
printf '%s\n' "${menus[@]}"
2020-09-22 13:11:45 +02:00
if [ $1 == "-r" ]; then
printf '%s\n' "<i>$REMOVE</i>,mb-setvar places_softwarepipe=false"
2020-09-21 14:43:15 +02:00
fi
2020-09-05 21:50:15 +02:00
printf '%s\n' "${lines[@]}"
#echo "grafika,^checkout(grafika)"
#echo -e "^tag(grafika)\ngimp,czy\nblender\ninkscap"