by loloquwowndueo · 4y ago · 0 comments
xclip allows putting stuff in the X clipboard for subsequent pasting into any application. I use it to “copy” canned email responses which I keep in a folder as .txt files and then paste them in the browser for sending by email. No need to bother with browser extensions or built-in crappy functionality (gmail canned responses used to just lose my responses every once in a while).
alias xpaste='xclip -out -sel clipboard'
alias xcopy='xclip -in -sel clipboard' alias clip='xclip -selection clipboard'
Then you can do things like: cat foo.txt | clip
To copy the file into your clipboard.