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 $@