Alfred Workflow to paste the memes from your ~/meme folder
Installing this workflow works the same way you would install any other alfred workflow, but it'll need a cli tool to manage your clipboard. Once you have installed the Requirements, you can just navigate to the Releases page and download the latest workflow file.
The basic usage of the workflow is shown in the demo gif, but if you need more information:
To paste a meme to a chat, or any other app, you just need to type meme
and then search for the filename of the meme you want.
If you want to sync the memes from my storage account - just making it easier to download memes - you can just open alfred and type memedownload
!
This command will fetch all the memes I have in my computer and sync it with yout ~/meme
folder.
To get memepaste to work, you will need a couple of softwares:
impbcopy
into your /usr/local/bin/ folder.jq
into your /usr/local/bin/ folder.
To install impbcopy
and jq
using my script, just run this command:
$(curl https://raw.githubusercontent.com/gcarrarom/memepaste/master/install_pbcopy.sh)
Or download the script and run it locally:
curl https://raw.githubusercontent.com/gcarrarom/memepaste/master/install_pbcopy.sh --output install_pbcopy.sh
chmod +x ./install_pbcopy
./install_pbcopy.sh
if you can't use this script, please try installing them manually:
This is a good old tool that was created by Alec Jacobson, definitely recommend checking it out from his blog post here
You can follow his blog post to install his tool or use the script I provide in this repo, completely up to you!
I am not going to reinvent the wheel here, if you need to install jq, please head to its official page: https://stedolan.github.io/jq/
If you still can't install jq, you can still use this workflow using the keyword memeold
. That is going to use the old behaviour of the workflow that doesn't use jq to handle the icons of the images.
Just add your memes to your ~/meme
folder! It's as simple as that! Make sure to also give a descriptive name to your file, you're going to be searching for memes using it.
Also, if you want to add another image to this via memedownload
, please open a github issue, or get in touch with me! I will try adding all the memes I can!
I'm glad you've asked! If you have ever tried to use pbcopy for images, it's going to reference the file itself on your clipboard and it won't paste it as an image into the chats/documents/<insertYourApplicationHere>.
Don't worry, if you don't see anything after typing meme
on alfred, that's expected! This workflow uses the regular file filter from Alfred, nothing fancy. Just type something that should be in the file name of your meme. Just make sure it's in the ~/meme
folder!
You can now type memedownload
in alfred to download some memes to your ~/meme
folder!