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

On MacOS, keybind definition to ignore cmd-w does not work #879

Open
pbgc opened this issue Jan 6, 2025 · 2 comments
Open

On MacOS, keybind definition to ignore cmd-w does not work #879

pbgc opened this issue Jan 6, 2025 · 2 comments

Comments

@pbgc
Copy link

pbgc commented Jan 6, 2025

Hi,

I try to define a keybinding to ignore cmd-w like (tried both options):

{ key = "w", with = "command", action = "none" }, { key = "w", with = "super", action = "none" },

but it's not working. When I hit cmd-w the window closes.

My entire configuration is:

padding-x = 2
padding-y = [2, 2]

option-as-alt = 'left'

[shell]
program = "/opt/homebrew/bin/fish"

[fonts]
family = "MesloLGS NF"
size = 13.0

[bindings]
keys = [
  { key = "w", with = "command", action = "none" },
  { key = "w", with = "super", action = "none" },
  { key = "8", with = "shift | alt", text = "{" },
  { key = "9", with = "shift | alt", text = "}" },
  { key = "8", with = "alt", text = "[" },
  { key = "9", with = "alt", text = "]" },
  { key = "3", with = "alt", text = "€" },
  { key = "2", with = "alt", text = "@" },
]
@MirniWantsSweets
Copy link

hello!

I'm not entirely sure that this should be possible from the rio config because I think that these are handled by the OS.

Try going to the keyboard section of the system settings, then "keyboard shortcuts" followed by "app shortcuts".
Here press "+" and find rio from the app list. Type "Close" as the command you wish to overwrite and press some ridiculous binding that you are never going to press so that it stops reacting to cmd + w.

These steps should help you.

@pbgc
Copy link
Author

pbgc commented Jan 7, 2025

Hi,

This is possible in Kitty, Alacrity and Ghosttty and defined in the config is a similar way that I tried.

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

No branches or pull requests

2 participants