Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.25 KB

README.md

File metadata and controls

31 lines (25 loc) · 1.25 KB

Usage

  • Manual config

    • Clone this repo or copy matrix-qutebrowser.py or matrix-qutebrowser-no-tab-icons.py.
    • Symlink (or just copy) the file matrix-qutebrowser.py to your .qutebrowser directory.
    • Add config.source('qutebrowser-matrix.py') at the end of your config.py file.
  • Let qutebrowser manage your themes.

    • Insert in your config.py the next code:
    import os
    from urllib.request import urlopen
    
    # load your autoconfig, use this, if the rest of your config is empty!
    config.load_autoconfig()
    
    if not os.path.exists(config.configdir / "theme.py"):
        theme = "https://raw.githubusercontent.com/iruzo/matrix-qutebrowser/main/matrix-qutebrowser.py"
        with urlopen(theme) as themehtml:
            with open(config.configdir / "theme.py", "a") as file:
                file.writelines(themehtml.read().decode("utf-8"))
    if os.path.exists(config.configdir / "theme.py"):
        config.source('theme.py')
    • Remove your current theme from your .qutebrowser directory & reload config.py