scripts/dmenu/actions

23 lines
512 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# Premier plan normal
NF="#7d9734" # vert clair
# Arrière plan normal
NB="#000000" # noir
# Premier plan sélectionné
SF="#000000" # noir
# Arrière plan sélectionné
SB="#7ebac2" # bleu clair
# Prompt à afficher
prompt=Lance
# Propose la liste des scripts disponibles dans ~/scripts/actions
# Se placer dans le répertoire personnel
cd ~
index=`ls ~/bin/dmenu/ | dmenu -nb ${NB} -nf ${NF} -sb ${SB} -sf ${SF} -p "${PWD} ${prompt}:"`
[ -z "${index}" ]
if [ ${?} = 1 ]; then
exec ${index}&
fi