Created
February 26, 2026 08:48
-
-
Save millancore/e1809f17fba7a684a38da10e75bb241c to your computer and use it in GitHub Desktop.
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/bash | |
| tabs=$(curl -s http://localhost:9222/json | jq -r '.[] | select(.type == "page") | "\(.title)\t\(.id)"') | |
| selected=$(echo "$tabs" | cut -f1 | fuzzel --dmenu -p "Tab: ") | |
| [ -z "$selected" ] && exit 0 | |
| tab_id=$(echo "$tabs" | grep -F "$selected" | head -1 | cut -f2) | |
| # Activar pestaña via CDP | |
| curl -s "http://localhost:9222/json/activate/$tab_id" > /dev/null | |
| # Dar focus a la ventana de Vivaldi cuyo título contiene el nombre de la pestaña | |
| sleep 0.15 | |
| niri msg action focus-window --id "$(niri msg --json windows \ | |
| | jq -r --arg title "$selected" \ | |
| '[.[] | select(.app_id == "vivaldi-stable" and (.title | contains($title)))] | first | .id')" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vivaldi Tab Switcher for Niri (via CDP + fuzzel)
A bash script that lets you search and switch between Vivaldi browser tabs using
fuzzelas a dmenu-style picker, powered by Chrome DevTools Protocol (CDP). Designed for the Niri Wayland compositor.What It Does
fuzzelpopup so you can fuzzy-search.niri msg.Prerequisites