Unfortunately, there's already popular software called ‘flux’, or rather ‘f.lux’: the one that turns the screen redder in the evening to mirror the natural light. It's the app that did it first, predating this function in the OSes, and still doing it better than most ‘native’ implementations.
I was thinking fluxbox the window manager.
I was thinking the capacitor
Thank you, i will change the name
A quick shallow look.
- Avoid single hard paths. Provide fall-backs. Make them all configurable. Use xdg (properly)...etc.
- Avoid
.unwrap()or any source ofpanic!()for non-fatal things that can actually fail. - Make non strictly necessary fields optional in you model, if that helps.
- Use
.filter_map()and.collect()in your parsing code, instead of all the matches andcontinues in a for loop. You can use.ok()?to early-return withNoneon errors. - And finally, since you're micro-benchmarking, try
speedyorborshinstead of bincode, unless you need theserdecompat for some reason.
I don't know any Rust yet but this sounds believable af.
Nice project, I really like the minimal design!
I also experienced a panic on image load.
My rule of thumb for error handling: try to avoid unwrap. Use expect with a nice error message. And only use expect for stuff that should never fail. And bubbling up the errors to the top with ? is also useful.
Thanks i will fix that rn
Gave it a whirl, on Arch with wayland, but I kept getting a panic error.

Maybe i fixed it, try again
It's working now, I'll spend some time with it this week. So far, it seems stable and it responds to my keyboard shortcut. Has run everything I've searched for, and hasn't crashed.
That's all in about 5 minutes of testing, but I'll give it another review in a few dyas when I've had more time to put it through some paces.
Good work so far!
Thanks :), i have a few questions does it also consume ~30 mb of ram? and does it start up quickly?
Yes I need this! Krunner is so slow.
Guys, do you have any ideas for a name?
Solder
Rosin Core
Tinned
SMC
I thought about it and came up with the name Rover or Stride, what do you think guys?
How does this compare to anyrun?
There is one disadvantage and one advantage flux consumes 30-40 MB of RAM but has 0-3% CPU usage, while Anyrun consumes ~160 MB of RAM but has 0-1% CPU usage.
With GPU rendering, you should learn about GPU processing and memory usage too, not that it would matter much for such a use-case.
nvtop is nice for displaying all that info (it's not nvidia-specific).
Also % CPU usage is not a good metric, especially when most people forget to set CPU frequencies to fixed values before measuring. And heterogenous architectures (e.g. big.LITTLE) make such numbers meaningless anyway (without additional context). But again, none of this really matters in this use-case.
Flux can also be customized but need to change colors in app code 
there is an catppuccin frappe example
Rust Programming