aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/plumber-dmenu
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/plumber-dmenu')
-rwxr-xr-x.local/bin/plumber-dmenu11
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/plumber-dmenu b/.local/bin/plumber-dmenu
new file mode 100755
index 0000000..431bbb7
--- /dev/null
+++ b/.local/bin/plumber-dmenu
@@ -0,0 +1,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