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

Remove shortcut using config file #1329

Open
vicecaycedo opened this issue Oct 22, 2022 · 6 comments
Open

Remove shortcut using config file #1329

vicecaycedo opened this issue Oct 22, 2022 · 6 comments

Comments

@vicecaycedo
Copy link

Is there a way to remove a shortcut (the default shortcuts) using the config yaml file?

@ianyh
Copy link
Owner

ianyh commented Oct 22, 2022

No, but it wouldn't be that hard to add. Just take something like false as meaning to unset a shortcut. Would be a good starter issue.

@agoodshort
Copy link

Related to this issue, if I set only the below in my config file, start a fresh install of Amethyst (e.g. rm ~/Library/Preferences/com.amethyst.Amethyst.plist).

When reviewing the preferences and shortcuts, I have now "mod1 + D" assigned to "Select fullscreen layout" and "Move focus clockwise".
When using Amethyst without a config file, it is not possible to set the same shortcut to 2 different commands, the UI does not allow it.

mod1:
    - option
    - shift

focus-cw:
    mod: mod1
    key: d

@mickimnet
Copy link

I only use a handful of functions with shortcuts, and was also trying to use the YAML config file.

Besides currently not being able to remove shortcuts with the YAML config file, removing them in the UI configuration section didn't help because after restarting Amethyst, they all reappeared again 🥺

@benjaminbauer
Copy link

@mickimnet using a config file will override the settings made in the UI. That is intended. The only way currently to remove shortcuts when using a config file is not to remove the declaration in the config but to set the unwanted shortcuts to a key combination that you don't use.

@vicmunoz
Copy link

@mickimnet The only way currently to remove shortcuts when using a config file is not to remove the declaration in the config but to set the unwanted shortcuts to a key combination that you don't use.

Thanks for the workaround. I assume this is a bug, due currently (without config file) you can remove shortcuts safely.

@cowboy-bebug
Copy link
Contributor

@vicecaycedo I'm on the latest v0.20.0 and something like this works:

focus-screen-1:
  mod: ""
  key: ""

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

7 participants