Skip to content

Seems like configuration by output description isn't working on Niri #155

Description

@kepi

Hi,

either I'm doing something wrong or outputs can't be configured by description on Niri. Which doesn't seem right as I see mention of niri outputs in regexp parts of configuration source code.

My outputs:

❯ niri msg outputs | grep Output
Output "ASUSTek COMPUTER INC ROG XG27AQ M1LMQS010079" (DP-1)
Output "Dell Inc. DELL P2723DE B1MP1L3" (DP-4)
Output "Dell Inc. DELL P2723DE G1MP1L3" (DP-5)

I thought this should work:

["Dell Inc. DELL P2723DE G1MP1L3"]
# ["re:G1MP1L3"]
# [DP-5]
duration = "1m"
path = "/home/kepi/Nextcloud/docs/wallpapers/1440x2560"

["ASUSTek COMPUTER INC ROG XG27AQ M1LMQS010079"]
# ["re:M1LMQS010079"]
[DP-4]
duration = "1m"
path = "/home/kepi/Nextcloud/docs/wallpapers/2560x1440"

["Dell Inc. DELL P2723DE B1MP1L3"]
# ["re:B1MP1L3"]
# [DP-1]
duration = "1m"
path = "/home/kepi/Nextcloud/docs/wallpapers/1440x2560"

["re:Surface"]
path = "/home/kepi/Nextcloud/docs/wallpapers/2880x1920"

But when I start wpaperd, I see that it is complaining about DP names, not description ones and wallpapers are not set.

❯ wpaperd
WARN [wpaperd::wpaperd]
   0: Configuration error on display DP-1
   1: Attribute path must be set

Suggestion: Add attribute path in the display section of the configuration:
path = "</path/to/image>"

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
WARN [wpaperd::wpaperd]
   0: Configuration error on display DP-4
   1: Attribute path must be set

Suggestion: Add attribute path in the display section of the configuration:
path = "</path/to/image>"

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
WARN [wpaperd::wpaperd]
   0: Configuration error on display DP-5
   1: Attribute path must be set

Suggestion: Add attribute path in the display section of the configuration:
path = "</path/to/image>"

As you can see commented out in config file, I tried regexps too as suggested, but with same result.

I can't depend on output ports as those changes on my setup.

Thanks for any tip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions