diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-04-09 16:16:54 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-04-09 16:16:54 +0200 |
commit | 9cdffc48ff753d9bb0087a8728bbd5a68c09f87b (patch) | |
tree | 2816bb2c8e2469d419525b60aba78ecb0ef969ea /dmenuDic.sh | |
parent | 6b75e7479e6d6ae43cad4c17b3475a76956638d2 (diff) | |
download | scripts-9cdffc48ff753d9bb0087a8728bbd5a68c09f87b.tar.gz scripts-9cdffc48ff753d9bb0087a8728bbd5a68c09f87b.zip |
Created dmenuDic.sh to search and copy a word in dictionary.
Diffstat (limited to 'dmenuDic.sh')
-rwxr-xr-x | dmenuDic.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dmenuDic.sh b/dmenuDic.sh new file mode 100755 index 0000000..cbfce71 --- /dev/null +++ b/dmenuDic.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# Selects a word from the system's dictionary with the help of dmenu and copies it to clipboard. + +word="$(cat /usr/share/dict/cracklib-small | dmenu -i -l 10 -p "Choose a word:")" +[ "$word" ] || exit 0 +echo "$word" | xsel -bi +dunstify -t 2000 "Written [$word] into clipboard." |