aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-05-09 11:29:31 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2019-05-09 11:29:31 +0200
commita02defa8b7c90214c5898e98317e14473a246a61 (patch)
tree3ea86e30d4d7138394d4db1d890776f06422968a
parent7877ae71cb890fb458afa68b71e9ba10abf52392 (diff)
downloadscripts-a02defa8b7c90214c5898e98317e14473a246a61.tar.gz
scripts-a02defa8b7c90214c5898e98317e14473a246a61.zip
Added Polish dictionary.
-rwxr-xr-xdmenuDic.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/dmenuDic.sh b/dmenuDic.sh
index b819e1b..d1ef0f8 100755
--- a/dmenuDic.sh
+++ b/dmenuDic.sh
@@ -2,11 +2,13 @@
# Selects a word from a dictionary with the help of dmenu and copies it to clipboard.
-dict="$(printf "EN\nES" | dmenu -i -p "Choose a dictionary:")"
+dict="$(printf "EN\nES\nPL" | dmenu -i -p "Choose a dictionary:")"
if [ "$dict" = "EN" ]; then
word="$(dmenu -i -l 10 -p "Choose a word:" < /usr/share/dict/words.txt)"
elif [ "$dict" = "ES" ]; then
word="$(dmenu -i -l 10 -p "Elige una palabra:" < /usr/share/dict/palabras.txt)"
+elif [ "$dict" = "PL" ]; then
+ word="$(dmenu -i -l 10 -p "Wybierz słowo:" < /usr/share/dict/słowa.txt)"
fi
[ "$word" ] || exit 0
echo "$word" | tr -d '\n' | xsel -bi