YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
4.12k stars 123 forks source link

`hide-after-inactive-ms` and `hide-on-key-press` cursor settings invalidate config #753

Closed cmvanb closed 1 month ago

cmvanb commented 1 month ago

I am new to Niri, please forgive me if there is some user error.

Based on this wiki page, I configured the following cursor node in config.kdl:

cursor {
    xcursor-theme "Simp1e"
    xcursor-size 24

    hide-after-inactive-ms 3000
    hide-on-key-press
}

When I save the file, Niri pops up the Failed to parse config file. error.

When I run niri validate I get the following output:

Error: error loading config
    Diagnostic severity: error
    Caused by: error parsing
    Caused by: error parsing KDL

Error: unexpected node `hide-after-inactive-ms`
    Diagnostic severity: error

Begin snippet for config.kdl starting at line 113, column 1

snippet line 113:
snippet line 114:     hide-after-inactive-ms 3000
    label starting at line 114, column 5: unexpected node
snippet line 115:     hide-on-key-press
    label ending at line 115, column 0: unexpected node
snippet line 116: }
Error: unexpected node `hide-on-key-press`
    Diagnostic severity: error

Begin snippet for config.kdl starting at line 114, column 1

snippet line 114:     hide-after-inactive-ms 3000
snippet line 115:     hide-on-key-press
    label starting at line 115, column 5: unexpected node
snippet line 116: }
    label ending at line 116, column 0: unexpected node
snippet line 117:

If I comment out the two hide options, the config is validated.

System Information

YaLTeR commented 1 month ago

They are not in a released version yet. You can see in the docs: "Since: 0.1.10", this is the niri version

cmvanb commented 1 month ago

My mistake, sorry for the noise.