blob: cbfce71e327c1236be2c81315ef65e48ceb267af (
plain)
1
2
3
4
5
6
7
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."
|