Skip to content

fuloating/rofi-qb-tabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

rofi-qb-tabs

Qutebrowser's session handling in a rofi's dmenu-like list. This script is intended to replace the browser's own session handling, allowing returning user to launch clean qutebrowser without reloading the websites from the last session, yet access them on demand.

Installation

Place sessionsaver.py to qutebrowser's userscript directory. Place tabs.sh wherever you want. Modify the tabs file's directory in the TABFILE variable in tabs.sh and in the outFilename variable in sessionsaver.py. Set save-session to false in qutebrowser.conf

Usage

The sessionsaver.py userscript saves the current qutebrowser session for rofi to use and quits qutebrowser. Invoke it in qutebrowser with :spawn --userscript sessionsaver.py.

Run the rofi menu with rofi -show tabs -modi tabs:<path-to-tabs.sh> to open up the list of websites from the previous sessions. Executing one of the websites from the rofi list will launch that URL in qutebrowser and remove it from the list.

If qutebrowser is run in "tabs-are-windows" mode, you could run a rofi list with currently open windows' plus the saved websites from previous sessions, for example with: rofi -combi-modi "window,tabs:$HOME/scripts/rofi/tabs.sh" -show combi -modi combi,tabs:$HOME/scripts/rofi/tabs.sh

Thanks

Thanks to ccr and DaveDevilport for help in programming the scripts.

About

qutebrowser session in rofi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published