ap

An audio player suited to my tastes
Log | Files | Refs | README | LICENSE

commit 7a1c818026273408fc95da4ec23c309589649c0f
parent c1dce327e69e6e99c33a537a1b2800abfc9ad7ed
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Tue, 13 Jul 2021 21:01:33 -0700

Change apc substitute string

The carot character is no longer special to aps and makes more sense
than dash.

Diffstat:
Mapc/apc.c | 4+++-
Aapc/config.h | 1+
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/apc/apc.c b/apc/apc.c @@ -27,6 +27,8 @@ #include <ap.h> +#include "config.h" + void die(char *s) { @@ -146,7 +148,7 @@ main(int argc, char **argv) sub = 0; for (i = 1; !sub && i < argc; ++i) - if (strcmp(argv[i], "-") == 0) + if (strcmp(argv[i], substr) == 0) sub = i; if (!sub) { if (apc_run(&con, &p, print, argv + 1) || p) diff --git a/apc/config.h b/apc/config.h @@ -0,0 +1 @@ +static char *substr = "^";