summaryrefslogtreecommitdiff
path: root/.local/bin/wrdm
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/wrdm')
-rwxr-xr-x.local/bin/wrdm7
1 files changed, 5 insertions, 2 deletions
diff --git a/.local/bin/wrdm b/.local/bin/wrdm
index e8f5f4e..51dfe6d 100755
--- a/.local/bin/wrdm
+++ b/.local/bin/wrdm
@@ -1,6 +1,9 @@
#!/bin/sh
-word=$(dmenu -p "Enter Word: " <&-)
+# 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
-$BROWSER "https://www.google.com/search?hl=en&q=define+$word"
+if [[ -n $word ]]; then
+ $BROWSER "https://www.google.com/search?hl=en&q=define+$word"
+fi