blob: 9feda59c091534bbee47b5cfab9982851fc1d96b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/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; } \
|| notify-send "Plumber: Clipboard selection is empty"
done
|