KZDKM / Hyprspace

Workspace overview plugin for Hyprland
GNU General Public License v2.0
523 stars 16 forks source link

Support `input.kb_options` remap `ESC` #23

Closed chasing-freedom closed 7 months ago

chasing-freedom commented 7 months ago

I use kb_options = caps:swapescape to swap ESC with CapsLock. But I can't exit Hyprspace when i press CapsLock. Hyprspace only supports the original key ESC.

settings in hyprland.conf

input {
    kb_layout = us,us
    kb_variant = dvp, 
    kb_model =
    kb_options =grp:toggle,caps:swapescape
    kb_rules =

    follow_mouse = 2

    numlock_by_default = true

    touchpad {
        natural_scroll = no
    }

    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}
luyu-wu commented 7 months ago

Can't you just set it to the CPSLCK keycode instead? Pretty sure this is less of a Hyprspace problem than a Hyprland/your config issue!

Of course if you have any suggestions for how you would fix this in Hyprspace I'd be happy to patch it.

KZDKM commented 7 months ago

Hyprland implements key swapping by setting xkb keyboard rules. I am not very familiar with the input system and its not very trivial to make this plugin aware of it. I guess the best course of action is to just adding a new config option for assigning the exit key.

chasing-freedom commented 7 months ago

Hyprland implements key swapping by setting xkb keyboard rules. I am not very familiar with the input system and its not very trivial to make this plugin aware of it. I guess the best course of action is to just adding a new config option for assigning the exit key.

OK. Thank you for your reply.