From 6ea8fa749402f975c1175a706b82581b5c7bba97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ari=20von=20Nordenskj=C3=B6ld?= Date: Sat, 3 Nov 2018 18:31:14 +0100 Subject: [PATCH] replace the copy-to-clipboard hack This is obviously the correct way to do it with xclip as well. I used xsel as xclip doesn't seem to play ball with my clipboard, so if xsel isn't pulled in as a dependency either add it or use xclip instead. --- .config/newsboat/config | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.config/newsboat/config b/.config/newsboat/config index b9b1872..120b5dd 100644 --- a/.config/newsboat/config +++ b/.config/newsboat/config @@ -37,5 +37,4 @@ macro v set browser "setsid nohup mpv"; open-in-browser ; set browser linkhandle macro w set browser "w3m"; open-in-browser ; set browser linkhandler macro p set browser "dmenuhandler"; open-in-browser ; set browser linkhandler # c copies the link to the clipboard. -# The line below is probably the skiddiest line I've ever written. -macro c set browser "copy(){ echo $1 | xclip ;}; copy "; open-in-browser ; set browser linkhandler +macro c set browser "xsel -b <<<" ; open-in-browser ; set browser linkandler