prism-keybindings
A helper utility that parses your 01 Hyprland configuration files to generate a searchable list of all active keybindings. It presents these bindings in a clean, readable format using 08 Rofi, making it easy to memorize shortcuts or find specific commands without digging through configuration files manually.
How it works
- Scanning: The script recursively scans the
$HOME/.config/hyprdirectory for lines starting withbind =. - Parsing & Formatting: It uses
sedto transform the raw Hyprland config syntax into human-readable text:- Replaces
$mainModwithSUPER. - Formats the action arrow (e.g.,
-> Exec:). - Joins modifier keys with
+.
- Replaces
- Display: The processed list is piped into
rofi -dmenu, creating a searchable window where users can type keywords (like "browser" or "volume") to see the associated hotkeys.
Dependencies
rofi: Displays the keybinding list.gnugrep: Searches the config files.gnused&gawk: Text processing tools for formatting the output.
Usage
This script is bound to a key so help is always accessible.
prism-keybinds