diff --git a/README.md b/README.md index 207aee3..4cd2a1e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # acpi_actor A Syndicate actor for publishing Linux ACPI events as well as an example of interacting with Linux generic netlink sockets in pure Nim (Linux C headers aside). -Not very useful. I thought that I would get battery capacity information over netlink but apparently that information is polled from files in /sys despite any stated deprecations. +A configuration example is provide at [example-config.pr](./example-config.pr). -The lesson learned is that Netlink is of the sort of quality to be expected from the Linux kernel. +Not very useful. I thought that I would get battery capacity information over netlink but apparently that information is polled from files in /sys despite any stated deprecations. diff --git a/example-config.pr b/example-config.pr new file mode 100644 index 0000000..9c548e7 --- /dev/null +++ b/example-config.pr @@ -0,0 +1,18 @@ +> + + + +? [ + + ? ?cap> [ + $cap { machine: $machine } + ] + + $machine ?? [ + $log ! + ] + +]