From fcf9a2662603ece4b458a24900f9e43c6d263226 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 11 Mar 2020 18:35:25 +0100 Subject: [PATCH] Get URL from main clipboard --- url.shortme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url.shortme.sh b/url.shortme.sh index ecd6818..da30115 100755 --- a/url.shortme.sh +++ b/url.shortme.sh @@ -47,7 +47,7 @@ if [ "${flag_inline}" = "true" ]; then fi # Try to get URL from clipboard if [ "${flag_clipboard}" = "true" ]; then - url_to_short=$(xclip -out) + url_to_short=$(xclip -out -selection clipboard) fi [ "${debug}" -eq "0" ] && printf "${c_magentab}%-6b${c_reset}\n" "DEBUG − Get URL : URL to be shortened : ${url_to_short}"