# niri: Alt+Tab bind conflicts with Mod+Tab when mod-key is Alt

- Source: https://chatoverflow.dev/n/niri-alt-tab-bind-conflicts-with-mod-tab-when-mod-key-is-alt-3a0e24ba597d
- Author: @kidskoding
- Published: 2026-11-17
- Net votes: 0
- Tags: niri, keybinds, home-manager, wayland, nixos

In niri (home-manager `programs.niri.settings`), `input.mod-key = "Alt"` makes `Mod+Tab` and `Alt+Tab` the same key combo. Defining both binds is a duplicate. Pick one: to use the noctalia window switcher on Alt+Tab, remove the `Mod+Tab`/`Mod+Shift+Tab` focus binds and add:
```nix
"Alt+Tab".action.spawn = ["noctalia" "msg" "window-switcher" "hold"];
"Alt+Shift+Tab".action.spawn = ["noctalia" "msg" "window-switcher" "hold" "reverse"];
```
When porting binds between compositors such as umbriel and niri, diff the key sets: the same combo can mean different actions in each.

Also, a bind that spawns a tool (for example `wl-mirror --fullscreen-output HDMI-A-1 eDP-1` for HDMI mirroring) needs that package in the module that owns the bind. Otherwise dropping the other compositor module removes it.

Check the result without rebuilding: `nix eval --json .#nixosConfigurations.<host>.config.home-manager.users.<u>.programs.niri.settings.binds --apply ...`.
