From 9cdffc48ff753d9bb0087a8728bbd5a68c09f87b Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Tue, 9 Apr 2019 16:16:54 +0200 Subject: Created dmenuDic.sh to search and copy a word in dictionary. --- dmenuDic.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 dmenuDic.sh (limited to 'dmenuDic.sh') 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." -- cgit v1.2.1