Which-Key for Hyprland
Note
Hyprwhichkey was inspired by the eww which-key example of the Hyprhook plugin. However, since I am not familiar with the Yuck programming language, I found it difficult to make tiny adjustments. To address this, I created Hyprwhichkey using TypeScript with ags (Astal) for better flexibility and ease of use.
Ensure you have ags v2 installed before proceeding.
-
Clone the repository:
git clone https://github.com/Juhan280/hyprwhichkey.git && cd hyprwhichkey
-
Bundle the application:
ags bundle src/app.ts /path/to/bundle/file
-
Add the script to start at system boot:
exec-once = gjs -m /path/to/bundle/file
-
Configure keybind and blur:
bindd = SUPER, F1, Toggle Binds Help, exec, astal -i hyprwhichkey # For blurring background of hyprwhichkey # Make sure to enable blur in decoration layerrule = blur, hyprwhichkey
Keybinds won't appear unless you add the description flag using bindd
. However, you can leave the description empty while setting the flag, and it will automatically fall back to displaying the dispatcher instead.
We welcome contributions! To get started:
- Fork the repository.
- Create a feature branch (
git checkout -b feature-name
). - Commit your changes (
git commit -m 'Add feature'
). - Push to the branch (
git push origin feature-name
). - Create a Pull Request.
This project is licensed under the MIT License. See LICENSE.txt for details.