Add support for per-host user configuration

This uses KDL properties, i.e. "host=<hostname>" and can be applied to
any config type. An example is includes in examples/config.kdl.

```kdl
    wallpaper_image_path "~/Pictures/desktop.png" host="desktop"
    wallpaper_image_path "~/Pictures/laptop.png" host="laptop"
```
This commit is contained in:
Ben Buhse 2026-02-11 13:59:37 -06:00
commit 0b7e15d7ed
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
4 changed files with 63 additions and 12 deletions

View file

@ -91,4 +91,8 @@ input "PIXA3854:00 093A:0274 Touchpad" {
natural_scroll "enabled"
tap "disabled"
}
// Per-host config using the host= property
// Nodes with a host property are only applied when the hostname matches
wallpaper_image_path "~/Pictures/desktop.png" host="desktop"
wallpaper_image_path "~/Pictures/laptop.png" host="laptop"