first commit
This commit is contained in:
18
launcher_apps.sh
Executable file
18
launcher_apps.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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 &
|
||||
Reference in New Issue
Block a user