Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyprland: submaps cannot be configured with nix syntax #6062

Open
0x57e11a opened this issue Nov 9, 2024 · 0 comments
Open

hyprland: submaps cannot be configured with nix syntax #6062

0x57e11a opened this issue Nov 9, 2024 · 0 comments
Assignees

Comments

@0x57e11a
Copy link

0x57e11a commented Nov 9, 2024

hyprland does an odd thing in its usage of hyprlang with submap = ..., which switches into different submaps when binding keys (ideally this would've been implemented as different submap:xyz { ... } sections, but they Decided To Do It That Way for some reason)

# other keybinds

submap = something

bindm = , mouse:272, movewindow
bind = , escape, submap, reset

submap = reset

# other keybinds

because this specific section of keybinds needs to be surrounded by submap boundaries, it's not possible to do this with wayland.windowManagers.hyprland.settings

solution

the proposal is to add wayland.windowManagers.hyprland.submaps, like so:

wayland.windowManager.hyprland.submaps = {
    something = {
        bindm = [ ", mouse: 272, movewindow" ];
        bind = [ ", escape, submap, reset" ];
    };
};
workaround

wayland.windowManagers.hyprland.extraConfig exists, but having part of the config in a string and the rest in nix options is frustrating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants