Skip to content

Instantly share code, notes, and snippets.

@jgarte
Forked from bbb651/config.kdl
Created December 4, 2025 19:57
Show Gist options
  • Select an option

  • Save jgarte/8159702bb16be3fe570330de8f3228e5 to your computer and use it in GitHub Desktop.

Select an option

Save jgarte/8159702bb16be3fe570330de8f3228e5 to your computer and use it in GitHub Desktop.
Niri Window Switcher
binds {
Alt+Tab { spawn "~/.config/niri/switcher.sh"; }
}
#!/bin/sh
windows=$(niri msg -j windows)
niri msg action focus-window --id $(echo "$windows" | jq ".[$(echo "$windows" | jq -r 'map("\(.title // .app_id)\u0000icon\u001f\(.app_id)") | .[]' | fuzzel -d --index)].id")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment