config: add description-based output matching with desc: prefix
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Idbe0661f0c491512d61ace4337ebe8cd6a6a6964
This commit is contained in:
parent
e871307f6a
commit
459989e896
3 changed files with 60 additions and 18 deletions
|
|
@ -77,7 +77,8 @@ static int assign_wallpaper_to_output(chroma_state_t *state,
|
|||
|
||||
// Get image path for this output
|
||||
const char *image_path = chroma_config_get_image_for_output(
|
||||
&state->config, output->name ? output->name : "unknown");
|
||||
&state->config, output->name ? output->name : "unknown",
|
||||
output->description);
|
||||
if (!image_path) {
|
||||
chroma_log("WARN", "No wallpaper configured for output %u (%s)", output->id,
|
||||
output->name ? output->name : "unknown");
|
||||
|
|
@ -121,8 +122,8 @@ static int assign_wallpaper_to_output(chroma_state_t *state,
|
|||
// anchor coords)
|
||||
if (chroma_config_get_mapping_for_output(
|
||||
&state->config, output->name ? output->name : "unknown",
|
||||
&output->scale_mode, &output->filter_quality, &output->anchor,
|
||||
&output->anchor_x, &output->anchor_y) == CHROMA_OK) {
|
||||
output->description, &output->scale_mode, &output->filter_quality,
|
||||
&output->anchor, &output->anchor_x, &output->anchor_y) == CHROMA_OK) {
|
||||
output->config_loaded = true;
|
||||
chroma_log("DEBUG",
|
||||
"Loaded config for output %u: scale=%d, filter=%d, anchor=%d @ "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue