#!/bin/env bash # word=$(dmenu -p "Enter Word: " <&-) word=$(cat ~/.local/bin/words.txt | dmenu -l 25 -p "Choose Word: ") #$BROWSER https://www.merriam-webster.com/dictionary/$word if [[ -n $word ]]; then $BROWSER "https://www.google.com/search?hl=en&q=define+$word" fi