-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
Improve layout handling #65
Conversation
91ff670
to
ac57c7a
Compare
ac57c7a
to
b6df676
Compare
resources/default-config.kdl
Outdated
// Actions to switch layouts. | ||
//Mod+Space { switch-layout "next"; } | ||
//Mod+Shift+Space { switch-layout "prev"; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Actions to switch layouts. | |
//Mod+Space { switch-layout "next"; } | |
//Mod+Shift+Space { switch-layout "prev"; } | |
// Keyboard layout switching. | |
Mod+Space { switch-layout "next"; } | |
Mod+Shift+Space { switch-layout "prev"; } |
This makes sense to have by default I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, Most folks switch in xkb options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't conflict with xkb switching right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They don't conflict, it's just not everyone use multiple layouts, it's normally just one.
resources/default-config.kdl
Outdated
// How compositor should track the layout. | ||
// | ||
// - "global" - layout change is global for all windows. | ||
// - "window" - layout is tracked for each window individually. | ||
// | ||
//track-layout "global" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would make more sense as a boolean toggle:
// How compositor should track the layout. | |
// | |
// - "global" - layout change is global for all windows. | |
// - "window" - layout is tracked for each window individually. | |
// | |
//track-layout "global" | |
// Uncomment this line to make the layout change per-window, rather than globally. | |
// per-window-layout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about boolean, the enum is at lest clear what it does by default.
ef92e16
to
ac90c46
Compare
This should allow users of non-latin layouts use bindings without changing layout back to latin input capable one. Fixes YaLTeR#21.
ac90c46
to
b84b42b
Compare
Allow users to trigger layout change with custom bindings.
Track layout for each window individually when user requested `Window` tracking mode, keeping the default as global.
b84b42b
to
052bbb4
Compare
Did some minor changes. Should be good to merge now? |
Review by commit and then rebase. Draft until upstream merges changes.