summaryrefslogtreecommitdiff
path: root/dict.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dict.sh')
-rwxr-xr-xdict.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/dict.sh b/dict.sh
index 53c10df..137011a 100755
--- a/dict.sh
+++ b/dict.sh
@@ -1,8 +1,8 @@
#!/bin/sh
+
## dict.sh - nicely look up words in dictionaries with dictd
## Configuration
-dmenu="rofi -dmenu"
pager="rofi -location 2 -width -81 -e"
@@ -17,13 +17,13 @@ get_dict() {
tail -n +2 | \
grep -v "fd" | \
sed 's/^ [a-z0-9-]* *//' | \
- $dmenu -i -p "Dictionary"
+ dmenu -i -p "Dictionary"
}
## Get search term
get_search_term() {
- term=$(printf "Clipboard\nPrimary selection\n" | $dmenu -i -p "Search term")
+ term=$(printf "Clipboard\nPrimary selection\n" | dmenu -i -p "Search term")
if [ "$term" = "Clipboard" ]; then
echo "$(xclip -o -selection clipboard)"
elif [ "$term" = "Primary selection" ]; then