mabox-pipemenus/usr/bin/jgsoftware-pipe

89 lines
3.5 KiB
Plaintext
Raw Normal View History

2020-09-05 21:50:15 +02:00
#!/bin/bash
case $LANG in
pl*)
2024-01-05 17:27:03 +01:00
declare -a Internet=(chromium opera palemoon thunderbird filezilla deluge telegram-desktop rustdesk-bin)
2020-09-05 21:50:15 +02:00
declare -a Multimedia=(kodi vlc obs-studio audacious smplayer simplescreenrecorder)
2024-01-05 17:27:03 +01:00
declare -a Grafika=(gimp inkscape blender scribus)
declare -a Gry=(0ad warzone2100 wesnoth steam lutris )
2020-09-05 21:50:15 +02:00
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*)
2024-01-05 17:27:03 +01:00
declare -a Internet=(chromium opera palemoon thunderbird filezilla deluge telegram-desktop rustdesk-bin)
2020-09-05 21:50:15 +02:00
declare -a Multimedia=(kodi vlc obs-studio audacious smplayer simplescreenrecorder)
2024-01-05 17:27:03 +01:00
declare -a Graficos=(gimp inkscape blender scribus)
declare -a Juegos=(0ad warzone2100 wesnoth steam lutris)
2020-09-07 22:56:19 +02:00
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"
;;
*)
2024-01-05 17:27:03 +01:00
declare -a Internet=(chromium opera palemoon thunderbird filezilla deluge telegram-desktop rustdesk-bin)
2020-09-05 21:50:15 +02:00
declare -a Multimedia=(kodi vlc obs-studio audacious smplayer simplescreenrecorder)
2024-01-05 17:27:03 +01:00
declare -a Graphics=(gimp inkscape blender scribus)
declare -a Games=(0ad warzone2100 wesnoth steam lutris)
2020-09-05 21:50:15 +02:00
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
2021-02-04 17:41:02 +01:00
menus+=("$INSTALL_PRINT,pamac-installer manjaro-printer")
2020-09-05 21:50:15 +02:00
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
2021-05-23 10:20:13 +02:00
printf '%s\n' "<i>$REMOVE</i>,mb-setvar places_softwarepipe=false;mb-jgtools places"
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"