mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Add hardcoded us,ru layout and Super+Space switch
This commit is contained in:
@@ -41,6 +41,8 @@ impl Niri {
|
||||
time,
|
||||
|_, mods, keysym| {
|
||||
if event.state() == KeyState::Pressed {
|
||||
// FIXME: these don't work in the Russian layout. I guess I'll need to
|
||||
// find a US keymap, then map keys somehow.
|
||||
match keysym.modified_sym() {
|
||||
keysyms::KEY_E if mods.logo => {
|
||||
FilterResult::Intercept(InputAction::Quit)
|
||||
|
||||
+6
-1
@@ -81,7 +81,12 @@ impl Niri {
|
||||
|
||||
let mut seat: Seat<Self> = seat_state.new_wl_seat(&display_handle, seat_name);
|
||||
// FIXME: get Xkb and repeat interval from GNOME dconf.
|
||||
seat.add_keyboard(XkbConfig::default(), 400, 30).unwrap();
|
||||
let xkb = XkbConfig {
|
||||
layout: "us,ru",
|
||||
options: Some("grp:win_space_toggle".to_owned()),
|
||||
..Default::default()
|
||||
};
|
||||
seat.add_keyboard(xkb, 400, 30).unwrap();
|
||||
seat.add_pointer();
|
||||
|
||||
let space = Space::default();
|
||||
|
||||
Reference in New Issue
Block a user