diff options
-rwxr-xr-x | bin/guiscripts/linkhandler | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/guiscripts/linkhandler b/bin/guiscripts/linkhandler index c055302..da2d656 100755 --- a/bin/guiscripts/linkhandler +++ b/bin/guiscripts/linkhandler @@ -6,7 +6,7 @@ # if a music file or pdf, it will download, # otherwise it opens link in browser. -if [ -z "$1" ]; then +test -z "${url:=$1}" && url="$(xclip -sel c -o)" dunstify "linkhandler" "<b>handling</b> $url" |