diff options
author | Squibid <me@zacharyscheiman.com> | 2024-02-20 20:49:57 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2024-02-20 21:39:29 -0500 |
commit | f6475ab4cee0b824a6cc48bfc8f59bb5238df1d8 (patch) | |
tree | 2ad2f7626b0ec658aadc4487cab82863e4e94a70 /config.def.h | |
download | wiz-f6475ab4cee0b824a6cc48bfc8f59bb5238df1d8.tar.gz wiz-f6475ab4cee0b824a6cc48bfc8f59bb5238df1d8.tar.bz2 wiz-f6475ab4cee0b824a6cc48bfc8f59bb5238df1d8.zip |
initial commit
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h new file mode 100644 index 0000000..94aed91 --- /dev/null +++ b/config.def.h @@ -0,0 +1,10 @@ +#define CMD(...) (char*[]){ __VA_ARGS__, NULL } + +static const int killchild = 1; /* kill idle command on wake and vice versa */ + +struct Events events[] = { + /* idle time (ms) run on idle run on wake */ + /* example idle command which echos "idle" after 1 second + of being idle, and "awake" after being woken up: */ + { 1000, CMD("echo", "idle"), CMD("echo", "awake") }, +}; |