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.
This commit is contained in:
Ari von Nordenskjöld 2018-11-03 18:31:14 +01:00 committed by GitHub
parent 35e5b94d9f
commit 6ea8fa7494

View file

@ -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 w set browser "w3m"; open-in-browser ; set browser linkhandler
macro p set browser "dmenuhandler"; open-in-browser ; set browser linkhandler macro p set browser "dmenuhandler"; open-in-browser ; set browser linkhandler
# c copies the link to the clipboard. # c copies the link to the clipboard.
# The line below is probably the skiddiest line I've ever written. macro c set browser "xsel -b <<<" ; open-in-browser ; set browser linkandler
macro c set browser "copy(){ echo $1 | xclip ;}; copy "; open-in-browser ; set browser linkhandler