Krolyxon
Auto
Light
Dark
Summary
Tree
Log
Refs
Find
Commit
ca028a1
Branches
master
Refs →
dotfiles-x11
/
.local
/
bin
/
wrdm
9 lines · 276 B · Bourne Again Shell (bash)
Raw
Blame
History
Download
1
#!/bin/env bash
2
3
# word=$(dmenu -p "Enter Word: " <&-)
4
word
=$(cat ~/.local/bin/words.txt | dmenu -l 25 -p "Choose Word: ")
5
#$BROWSER https://www.merriam-webster.com/dictionary/$word
6
if
[[
-
n
$
word
]]
;
then
7
$
BROWSER
"https://www.google.com/search?hl=en&q=define+$word"
8
fi
9