diff --git a/examples/config.kdl b/examples/config.kdl index fc50144..b43ec9e 100644 --- a/examples/config.kdl +++ b/examples/config.kdl @@ -85,7 +85,7 @@ input { accel_profile "flat" } // Framework 13 Touchpad -input "PIXA3854:00 093A:0274 Touchpad" { +input name="PIXA3854:00 093A:0274 Touchpad" { accel_profile "adaptive" click_method "clickfinger" natural_scroll "enabled" diff --git a/src/Config.zig b/src/Config.zig index d5591fa..37922bb 100644 --- a/src/Config.zig +++ b/src/Config.zig @@ -282,8 +282,8 @@ fn load(config: *Config, reader: *Io.Reader) !void { next_child_block = .pointer_binds; }, .input => { - pending_input_name = if (node.argcount() > 0) - try utils.allocator.dupe(u8, utils.stripQuotes(node.arg(&parser, 0).?)) + pending_input_name = if (node.prop(&parser, "name")) |n| + try utils.allocator.dupe(u8, utils.stripQuotes(n)) else null; next_child_block = .input;