Skip to content

Conversation

@sarg
Copy link
Contributor

@sarg sarg commented Jan 16, 2026

The intent of the hook is to let user export additional theme settings, i.e. `c.colors.webpage.darkmode.enabled'. Fixes #35

In doom I use it like that:

(add-hook! 'qutebrowser-theme-export-functions
    (insert "c.colors.webpage.darkmode.enabled = "
            (if (custom-theme-enabled-p doom-theme-dark)
                "True"
              "False")
            "\n"))

sarg added 2 commits January 16, 2026 20:46
The intent of the hook is to let user export additional theme settings,
i.e. `c.colors.webpage.darkmode.enabled'. Fixes lrustand#35
Almost always automatic theme switch on my machine results in `RPC timed
out sending commands. Fallback to IPC.` It still works, just the message
pops up. Increasing the timeout to 1.5 makes it go away.
@sarg sarg changed the title Add qutebrowser-theme-export-hook. Add qutebrowser-theme-export-functions. Jan 17, 2026
prompts bg and fg should come from a single face to ensure readability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export darkmode settings with the theme

1 participant