blob: bdfe28ee7822a47c664de3e0341c6143ac4059ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh -eu
options="First letter of each word in sentence
Single line of text
Thesaurus
KJV Verse Lookup
Title Case
"
printf "%s" "$options" \
| dmenu -i -b -p Plumb \
| while read -r option
do
text=$(plumber --option "$option" --text "$(xsel -o)")
{ notify-send "$text" && printf "%s" "$text" | xsel -ib; } \
|| notify-send "Plumber: Clipboard selection is empty"
done
|