blob: 431bbb7f25b635413620214897fb77069aaa462b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh -eu
options="First letter of each word in sentence
Single line of text
"
printf "%s" "$options" \
| dmenu -i -b \
| while read -r option
do
text=$(plumber --option "$option" --text "$(xsel -o)")
notify-send "$text" && printf "%s" "$text" | xsel -ib
done
|