native jgmenu software pipemenu
This commit is contained in:
parent
a4a6218460
commit
a5b4bead25
@ -1,5 +1,7 @@
|
|||||||
# mabox-pipemenus
|
# mabox-pipemenus
|
||||||
An Openbox pipemenus for use with Manjaro Linux (port of CrunchBang pipemenus)
|
An Openbox pipemenus for use with Manjaro Linux (port of CrunchBang pipemenus)
|
||||||
|
|
||||||
|
Also some jgmenu native pipemenus
|
||||||
|
|
||||||
Work in progress
|
Work in progress
|
||||||
|
|
||||||
|
86
usr/bin/jgsoftware-pipe
Executable file
86
usr/bin/jgsoftware-pipe
Executable file
@ -0,0 +1,86 @@
|
|||||||
|
#!/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)
|
||||||
|
declare -a Backup=(timeshift deja-dup)
|
||||||
|
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)
|
||||||
|
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)
|
||||||
|
declare -a Backup=(timeshift deja-dup)
|
||||||
|
declare -a Virtualization=(virtualbox gnome-boxes)
|
||||||
|
declare -a categories=(Internet Multimedia Graphics Office Ebook Games Backup Virtualization)
|
||||||
|
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)
|
||||||
|
declare -a Backup=(timeshift deja-dup)
|
||||||
|
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
|
||||||
|
menus+=("$CONFIGURE_PRINT,zensu system-config-printer")
|
||||||
|
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[@]}"
|
||||||
|
printf '%s\n' "$REMOVE,mb-setvar places_softwarepipe=false"
|
||||||
|
printf '%s\n' "${lines[@]}"
|
||||||
|
#echo "grafika,^checkout(grafika)"
|
||||||
|
#echo -e "^tag(grafika)\ngimp,czy\nblender\ninkscap"
|
||||||
|
|
@ -128,8 +128,6 @@ for curApp in "${system[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
menuSubmenuEnd
|
menuSubmenuEnd
|
||||||
menuSeparator
|
|
||||||
menuItem "$REG_MENU" "mb-regenerate-menu"
|
|
||||||
menuEnd
|
menuEnd
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user