-
Notifications
You must be signed in to change notification settings - Fork 327
Description
I am requesting the addition of keychord support in the keybindings configuration for Hyprland, along with support for displaying keychords in Waybar. This feature is crucial because, without keychords, we quickly run out of available keybindings. Keychords provide greater flexibility in managing keybindings, similar to how they are utilized in Neovim and other window managers like Qtile and Xmonad.
Implement keychord support using Hyprland's built-in submap feature. Below is an example configuration to illustrate how keychords can be added:
bind = $mod1, S, submap, alt+s
submap = alt+s
bind = , N, exec, playerctl next
bind = , N, submap, reset
bind = , P, exec, playerctl previous
bind = , P, submap, reset
bind = , SPACE, exec, playerctl play-pause
bind = , SPACE, submap, reset
bind = , S, exec, playerctl stop
bind = , S, submap, reset
bind = , escape, submap, reset
submap = reset
To enhance the user experience, integrate Waybar support to display the current keychord combinations pressed. Here is an example configuration for Waybar:
"hyprland/submap": {
"format": "<span style="italic">σ° {}", // Icon: expand-arrows-alt
"tooltip": false
}
Benefits:
Increased flexibility and extensibility of keybindings.
Avoid running out of available keybindings.
Enhanced usability and user experience with visible keychord combinations in Waybar.
By implementing this feature, we can significantly improve the usability and customization potential of Hyprland. Thank you for considering this feature request.
