Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions users/mj/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,10 @@ in
keyboard {
xkb {
layout "us,ar"
// grp:ctrl_space_toggle drives switching under X11/LeftWM, but
// is a no-op in Niri (Niri grabs keys for its own binds before
// xkbcommon's group-toggle action fires). The Mod+Space bind in
// `binds` below does the switching here. Kept for X11 parity.
options "grp:ctrl_space_toggle"
}
}
Expand Down Expand Up @@ -1240,6 +1244,10 @@ in
// (Minus, Equal, Return) elsewhere in the bind table.
Mod+Shift+Slash hotkey-overlay-title="Show Important Hotkeys" { show-hotkey-overlay; }

// Keyboard layout — toggle us ⇄ ar. Niri's native action (see the xkb
// note above for why the grp: toggle alone doesn't switch here).
Mod+Space hotkey-overlay-title="Switch Keyboard Layout (us/ar)" { switch-layout "next"; }

// Applications
Mod+Return hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; }
Mod+D hotkey-overlay-title="Run an Application: anyrun" { spawn "anyrun"; }
Expand Down
Loading