Last active
December 4, 2025 19:57
-
-
Save bbb651/4f96381e288721f1c2a198253b8204e9 to your computer and use it in GitHub Desktop.
Niri Window Switcher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| binds { | |
| Alt+Tab { spawn "~/.config/niri/switcher.sh"; } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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