scripts/dmenu/iedit

16 lines
480 B
Bash
Executable File
Raw Permalink 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=gimp
# Propose la liste des images du répertoire courant et ouvre celle sélectionnée avec gimp
exe=`ls *.png *.jpg *.JPG *.jpeg *.gif *.bmp *.tiff | dmenu -nb ${NB} -nf ${NF} -sb ${SB} -sf ${SF} -p "${prompt}:" ${1+"$@"}` && exec gimp $exe