aboutsummaryrefslogtreecommitdiff
path: root/dmenuDic.sh
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-04-15 10:46:09 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2019-04-15 10:46:09 +0200
commite88acdea18983b4e405098accef9ad0b21e73a4a (patch)
tree44ab6d3201ba5b09f07f9921c5d50bb67de3bf62 /dmenuDic.sh
parentfbcbd9d52113eeac7e9a05120396a3a18f73e2d4 (diff)
downloadscripts-e88acdea18983b4e405098accef9ad0b21e73a4a.tar.gz
scripts-e88acdea18983b4e405098accef9ad0b21e73a4a.zip
Minor upgrades.
Diffstat (limited to 'dmenuDic.sh')
-rwxr-xr-xdmenuDic.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dmenuDic.sh b/dmenuDic.sh
index cbfce71..586d0c5 100755
--- a/dmenuDic.sh
+++ b/dmenuDic.sh
@@ -2,7 +2,7 @@
# 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="$(dmenu -i -l 10 -p "Choose a word:" < /usr/share/dict/cracklib-small)"
[ "$word" ] || exit 0
echo "$word" | xsel -bi
dunstify -t 2000 "Written [$word] into clipboard."