#!/bin/bash apps="" opciones_apps="" while read -r icono nombre comando ; do nombre=$( printf '%-40s' "$nombre" ) opciones_apps=$opciones_apps$icono" |"$nombre"|"$comando"\n" done < ~/scripts/aplicaciones.txt dir="$HOME/.config/rofi/launchers/type-7" theme='style-2' app=$( echo -e "$opciones_apps" | rofi -show -dmenu -p "Ejecutar aplicacion" ) IFS='|' read -r -a partes <<< "$app" command=${partes[3]} $command &