21 lines
		
	
	
		
			534 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			534 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
| #!/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="Ducky search"
 | |
| 
 | |
| # Propose d'entrer un texte qui sera ensuite recherché dans Duckduckgo via Iceweasel
 | |
| 
 | |
| action=iceweasel
 | |
| index=`echo | dmenu -nb ${NB} -nf ${NF} -sb ${SB} -sf ${SF} -p "${prompt}:" | sed s/\ /+/g`
 | |
| [ -z "${index}" ]
 | |
| if [ ${?} = 1 ]; then
 | |
|   $action https://duckduckgo.com/?q=${index}
 | |
| fi
 |