From e3e4f2324062f360fa05aee74b4f2a22666a3469 Mon Sep 17 00:00:00 2001 From: "Thomas R. Koll" Date: Thu, 23 Jan 2025 09:53:30 +0100 Subject: [PATCH] #3 Add menu option to just echo and close, which will in turn allow using the value in the calling script --- = | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/= b/= index 7f46da7..99f329a 100755 --- a/= +++ b/= @@ -80,11 +80,12 @@ while [[ $# -gt 0 && $1 != "--" ]]; do done [[ $1 == "--" ]] && shift -action=$(echo -e "Copy to clipboard\nClear\nClose" | $menu "$@" -p "= $answer") +action=$(echo -e "Copy to clipboard\nClear\nEcho and close\nClose" | $menu "$@" -p "= $answer") case $action in "Clear") $0 "--dmenu=$menu" "--" "$@" ;; "Copy to clipboard") copy_to_clipboard "$answer" ;; + "Echo and close") echo -n "$answer" ;; "Close") ;; "") ;; *) $0 "$answer $action" "--dmenu=$menu" "--" "$@" ;;