Skip to content

Bindings to keysyms are layout-dependent #8275

Open
@chebykinn

Description

Hi, I've been using Sway on and off for a while already, but I wanted to understand the reason for making bindings layout-dependent.

Let's say for example a user sets a key binding to open an application menu the same way they did it in i3:

bindsym $mod+d exec rofi -show run

This will only work with English keyboard layout. If they have a setup with multiple layouts like with an additional Cyrillic layout the menu wouldn't be called unless they switch back to English. To avoid this it is suggested to use bindsym --to-code in the man page, but it's not straightforward for the people who come from i3 and I've found multiple related issues here before posting this.

So roughly I have these questions:

  • What is the use case for binding keys to layouts? (AFAIK, other OSes, and environments don't do this)
  • Can the default be changed?

Activity

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

Metadata

Assignees

No one assigned

    Labels

    i3-compatSway doesn't match i3's behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions