abduco

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 4751bc525c0a9931fe2d7c4c15c8135e245076ce
parent 23074d3425d3fbcefa2bf6b94bdfc2c46ca4c5e7
Author: Andrew Laack <andrew@laack.co>
Date:   Sat,  6 Sep 2025 13:15:18 -0500

Updated gitignore

Diffstat:
M.gitignore | 1-
Aconfig.h | 19+++++++++++++++++++
2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore @@ -1,4 +1,3 @@ -/config.h /config.mk /abduco *.css diff --git a/config.h b/config.h @@ -0,0 +1,19 @@ +/* default command to execute if non is given and $ABDUCO_CMD is unset */ +#define ABDUCO_CMD "dvtm" +/* default detach key, can be overriden at run time using -e option */ +static char KEY_DETACH = CTRL('\\'); +/* redraw key to send a SIGWINCH signal to underlying process + * (set to 0 to disable the redraw key) */ +static char KEY_REDRAW = 0; +/* Where to place the "abduco" directory storing all session socket files. + * The first directory to succeed is used. */ +static struct Dir { + char *path; /* fixed (absolute) path to a directory */ + char *env; /* environment variable to use if (set) */ + bool personal; /* if false a user owned sub directory will be created */ +} socket_dirs[] = { + { .env = "ABDUCO_SOCKET_DIR", false }, + { .env = "HOME", true }, + { .env = "TMPDIR", false }, + { .path = "/tmp", false }, +};