nikitabobko / AeroSpace

AeroSpace is an i3-like tiling window manager for macOS
https://nikitabobko.github.io/AeroSpace/guide
MIT License
6.84k stars 112 forks source link

[Feature] Alias for combinations #224

Open AlgusDark opened 5 months ago

AlgusDark commented 5 months ago

Hi, thanks for this awesome project, I just discovered and I'm feeling that it's super great at this stage and I'm excited for it's future. There is this feature I would like to know if it's possible.

I have a hyper key (ctrl+alt+shift+cmd) that I would like to define so I can do hyper-c instead of defining the all 4 modifiers in every definition of a combo.

Thanks!

nikitabobko commented 5 months ago

Hi,

the issue is reasonable, but it's a minor priority for me. External contributions are welcome.

The currently existing key-notation-to-key-code syntax in the config can be reused:

[key-mapping.key-notation-to-key-code]
hyper = 'ctrl-alt-shift-cmd'

[mode.main.binding]
hyper-c = 'workspace c'
gldtn commented 2 months ago

Hi,

the issue is reasonable, but it's a minor priority for me. External contributions are welcome.

The currently existing key-notation-to-key-code syntax in the config can be reused:

[key-mapping.key-notation-to-key-code]
hyper = 'ctrl-alt-shift-cmd'

[mode.main.binding]
hyper-c = 'workspace c'

Has this changed since your reply? Doesn't seem to work for me:

Failed to parse /Users/gldtn/.config/aerospace/aerospace.toml

key-mapping.key-notation-to-key-code.hyper: 'ctrl-alt-shift-cmd' is invalid key code

mode.main.binding.hyper-b: Can't parse modifiers in 'hyper-b' binding

Thanks!

bcremer commented 2 months ago

@gldtn It's not a implemented feature yet.

@nikitabobko only suggested that the already existing config key (key-notation-to-key-code) can by used should anybody implement that feature.

gldtn commented 2 months ago

@gldtn It's not a implemented feature yet.

@nikitabobko only suggested that the already existing config key (key-notation-to-key-code) can by used should anybody implement that feature.

I see, I miss understood his reply. Thank you!

YANOUSHek commented 2 months ago

I know this is not the solution proposed by @nikitabobko but I don't think there's a need for anything more than hyper and meh modifiers. So I created #389 to have the feature request done.

FrancoLab commented 1 month ago

Any progress on this. Would be an awesome feature.

EttVenter commented 1 week ago

I would also appreciate this feature. Any chance we could get it implemented?

I tried the solution here and I guess that's still not implemented.

I use the Hyper and Meh keys a thousand times a day, so I'd really appreciate this feature!

Heck, even if there aren't specific definitions for them - I would just appreciate the "CMD+ALT+CTRL+SHIFT" and "ALT+CTRL+SHIFT" combinations to be usable.

vvvctr commented 1 week ago

Heck, even if there aren't specific definitions for them - I would just appreciate the "CMD+ALT+CTRL+SHIFT" and "ALT+CTRL+SHIFT" combinations to be usable.

@EttVenter alt-shift-cmd-ctrl-w = '...' works for me (AeroSpace v0.14.2-Beta 0cb8dbdfc5ee73b8cbc200f175f467ebead55201 on Sonoma 14.7)

tlvenn commented 1 day ago

is this still working for you @vvvctr ? With 0.15.2-Beta, I cant seem to bind to super keys at all

vvvctr commented 1 day ago

Hey @tlvenn, Yes, still working for me: AeroSpace v0.15.2-Beta b6cf82771f245ab7349a93baf8709e171537ff58