mirror of
https://github.com/0xGingi/kagi-fastgpt-hyprland.git
synced 2026-09-21 11:44:36 -04:00
No description
- Python 93%
- Shell 7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| main.py | ||
| README.md | ||
| requirements.txt | ||
| toggle_chat.sh | ||
Kagi FastGPT Popup for Hyprland
A simple popup chat interface using the Kagi FastGPT API, designed to be toggled with a keybind in Hyprland.
Setup
-
Clone the repository
git clone https://github.com/0xgingi/kagi-fastgpt-hyprland -
Install dependencies:
sudo pacman -S --needed jq pyside6 python-requests python-dotenv -
Set API Token: Create a
.envfile with the following content:KAGI_API_TOKEN=your_kagi_api_token_here -
Configure Toggle Script: Edit
kagi-fastgpt-hyprland/toggle_chat.shand setPYTHON_SCRIPT_PATHto the path ofkagi-fastgpt-hyprland/main.py. For example:PYTHON_SCRIPT_PATH="/home/$USER/kagi-fastgpt-hyprland/main.py"Make the script executable:
chmod +x toggle_chat.sh -
Configure Hyprland: Add the following to your
hyprland.conf, changing your preferred bind and path to toggle_chat.sh:bind = $mainMod, X, exec, /path/to/your/kagi-fastgpt-hyprland/toggle_chat.sh windowrulev2 = float, class:^(python3)$,title:^(Kagi FastGPT)$ windowrulev2 = size 60% 70%, class:^(python3)$,title:^(Kagi FastGPT)$ windowrulev2 = center, class:^(python3)$,title:^(Kagi FastGPT)$