Skip to content

lbr88/clipboardgpt

Repository files navigation

Clipboard gpt

This tool is a simple clipboard manager that uses the Openai API to generate text based on the clipboard content.

Demo

Demo

Installation

  1. Clone the repository
  2. Install the requirements
pipenv install
  1. 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
  1. 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

Usage

  1. Mark some text you want to reply to or grammar check
  2. Press the shortcut from step 4 in the installation
  3. Wait for the tooltip to appear with the generated text
  4. The generated text is now copied to the clipboard
  5. Paste the generated text

About

grammar and reply gpt scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published