From 6a1c7bdc46ffe977542e1e8f1619e00993060398 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Thu, 23 Mar 2023 21:04:49 +0100 Subject: [PATCH] Add ability to get link from clipboard if none provided. --- dmenu-link-handler | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dmenu-link-handler b/dmenu-link-handler index e5e5432..518ee79 100755 --- a/dmenu-link-handler +++ b/dmenu-link-handler @@ -21,7 +21,9 @@ menu () { main () { load_config - menu $@ + [ $# -eq 0 ] && link=$(xclip -sel c -o) || link="$@" + + menu $link } main $@