-
-
Save jgarte/8159702bb16be3fe570330de8f3228e5 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