These scripts allow to use rofi to switch between tabs in Firefox and Google Chrome / Chromium.
- Python
- jq
- Install MozRepl
- Press Alt and go to Tools->MozRepl->Activate on startup
- Copy
firefox-switch-tabs
andmozrepl
to a location which is in your path - Invoke rofi with
rofi -modi 'firefox:firefox-switch-tabs' -show firefox
- Nodejs
- jq
npm install -g chrome-remote-interface
sudo $EDITOR /usr/bin/chrome-remote-interface
and changeLine 190
fromconsole.log(display(tabs))
toconsole.log(display(JSON.stringify(tabs)))
(this step can be skipped in newer versions ofchrome-remote-interface
)- Copy
chrome-switch-tabs
(the file, not the folder) to a location which is in your path - Run
google-chrome/chromium --remote-debugging-port=9222
- Invoke rofi with
rofi -modi 'chrome:chrome-switch-tabs' -show chrome
Firefox does not load all opened tabs at startup. Unfortunately only loaded tabs can be shown.