-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change name of clear arg to color #194
Comments
I just realized that So, I am not sure this is necessary at all. |
imo its just an alternative to clear to set solid colors with transitions and cache, also #195 might seem unnecessary according to this issue but this idea originally started on discord with a conversation with op |
Ah, I see. Well, ok then. Let's go with it. |
Can I offer a different perspective?One could simplify here and take the same approach of grim + slurp. It might make sense to generate the bitmap/image in a separate process and pass it on to swww instead... |
Yeah, I think I like @hkupty's idea better. We can create the image straight in That would actually even simplify some code in the daemon, because we could both merge The problem would only be how to cache it, because colors aren't associated with any filepath. But this should be easy: we store the image's fullpath in the cache right now, so all we have to do is:
Since no fullpath will ever start with EDIT: ah, this is fact mostly what @flick0 already implemented in his PR. It's been a while since I had a look at this, so I had forgotten, my bad. |
That does sound like a better idea, i can update this pr to move the image stuff to swww |
sorry im a bit late to this, but dont we already do the image gen in swww instead of daemon lol |
we do??? I mean, in master we have: Swww::Clear(c) => {
let (format, _, _) = get_format_dims_and_outputs(&[])?;
let mut color = c.color;
if format.must_swap_r_and_b_channels() {
color.swap(0, 2);
}
let clear = ipc::ClearSend {
color,
outputs: split_cmdline_outputs(&c.outputs),
};
Ok(Some(RequestSend::Clear(clear.create_request())))
} So, right now we don't. Maybe in the PR you've already implemented it. |
I didn't change the clear request but img generating and stuff happens in swww instead of daemon for color, we cud also alias clear |
the name clear doesn't really make sense for just changing the background to a solid color, i recommend changing clear to making the background black, and having an arg color that requires a color after it and doesn't have a default
The text was updated successfully, but these errors were encountered: