DEV Community

mafflerbach
mafflerbach

Posted on

qutebrowser loading browser session from command line

This will be a shot one. In qutebrowser you have the possibility to save browser sessions. This will save all your current open tabs.
You can obviously loading this session files, and all the tabs will be restored.

In my case it comes handy, in support weeks when I have to monitor different pages.

And to have a more direct access, I wrote a two liner and combine rofi with that.

qutebrowser-session-selector.png

#!/bin/bash

sessions=$(ls -1 $HOME/.local/share/qutebrowser/sessions | rofi -dmenu -theme ~/dotfiles/i3/rofi.rasi)
if [ "$sessions" != "" ]; then
    qutebrowser ":session-load ${sessions/\.yml/}"
fi
Enter fullscreen mode Exit fullscreen mode

Top comments (0)