From 3de15502ea6cc1786f94f7c916ed3582d9e4584f Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Fri, 4 Sep 2020 17:12:32 +0200 Subject: [PATCH] search for clipboard contents feature added --- .local/bin/tools/searx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.local/bin/tools/searx b/.local/bin/tools/searx index c100e98..3e0f552 100755 --- a/.local/bin/tools/searx +++ b/.local/bin/tools/searx @@ -5,10 +5,12 @@ # Anything else, it search it. browser=${BROWSER:-firefox} -choice=$(echo "šŸ”" | dmenu -i -p "Searx:") || exit 1 +choice=$(printf "šŸ”\nšŸ“‹\n" | dmenu -i -p "Searx:") || exit 1 if [ "$choice" = "šŸ”" ]; then $browser "https://searx.bocken.org" +elif [ "$choice" = "šŸ“‹" ]; then + $browser "$(xclip -o --clipboard=clipboard)" else if echo "$choice" | grep "^(http:\/\/|https:\/\/)?[a-zA-Z0-9]+\.[a-zA-Z]+(/)?.*$"; then $browser "$choice"