summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/madd4
-rwxr-xr-x.local/bin/wrdm7
2 files changed, 6 insertions, 5 deletions
diff --git a/.local/bin/madd b/.local/bin/madd
index f7cdc95..2d4b959 100755
--- a/.local/bin/madd
+++ b/.local/bin/madd
@@ -12,9 +12,7 @@ madd() {
}
filename=$(mpc listall | dmenu -i -l 30)
-if [ -z "$filename" ]; then
- notify-send "Nothing was selected. Skipping."
-else
+if [ -n "$filename" ]; then
madd
fi
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