This tool is a simple clipboard manager that uses the Openai API to generate text based on the clipboard content.
- Clone the repository
- Install the requirements
pipenv install
- Create a .env file with the following content:
OPENAI_API_KEY=your_openai_api_key
NAME="your_name" # used for the replygpt to know who is talking
MODEL="gpt-4o" # the model to use
- Configure shortcuts in i3 or your window manager to run the script example:
bindsym $mod+Ctrl+c exec /home/username/git/clipboardgpt/replygpt.sh
bindsym $mod+c exec /home/username/git/clipboardgpt/grammargpt.sh
- Mark some text you want to reply to or grammar check
- Press the shortcut from step 4 in the installation
- Wait for the tooltip to appear with the generated text
- The generated text is now copied to the clipboard
- Paste the generated text