Skip to content

Dark/Light Mode #1762

Answered by Guldoman
NikkSaan asked this question in Q&A
Apr 6, 2024 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

I'd like to avoid using subprocess to listen on events from gsettings in lite-xl.

Why? That would probably be the simplest way.

Is there any way I can catch a Unix signal in lite-xl? Or trigger a (user) module reload externally?

Not really. But you could use the dirmonitor functionality to check if a file has been modified, and act accordingly.

If the script is purely time-based, you could replicate it as a Lite XL plugin.

If this is about the same toggle that directs https://wiki.libsdl.org/SDL3/SDL_GetSystemTheme, when we port to SDL3 we'll add a listener for that.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by NikkSaan
Comment options

You must be logged in to vote
3 replies
@Guldoman
Comment options

@NikkSaan
Comment options

@Guldoman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants