summaryrefslogtreecommitdiff
path: root/.local/bin/wrdm
diff options
context:
space:
mode:
authorkrolyxon <krolyxon@tutanota.com>2023-10-03 21:45:30 +0530
committerkrolyxon <krolyxon@tutanota.com>2023-10-03 21:45:30 +0530
commit55bce586282a6c25b2d81a9ac816c3b8e6d1c58e (patch)
tree68af914d8ec4750bbddec8846ded9bf693d6f9eb /.local/bin/wrdm
parentff64744c62f97b699c51f3baf747dec0cafe60b3 (diff)
ncmpcpp progress bar
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