From 605f503d9b7334570a8c01a0ab1cb21baf2f3472 Mon Sep 17 00:00:00 2001 From: zachir Date: Sat, 19 Jul 2025 00:17:13 -0500 Subject: Don't make dmenu compat new config file options --- src/main.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 06cd6ac..77420cc 100644 --- a/src/main.c +++ b/src/main.c @@ -845,9 +845,6 @@ static void usage(bool err) /* Option parsing with getopt. */ const struct option long_options[] = { {"help", no_argument, NULL, 'h'}, - {"bottom", no_argument, NULL, 'b'}, - {"password", no_argument, NULL, 'P'}, - {"require", no_argument, NULL, 'r'}, {"config", required_argument, NULL, 'c'}, {"include", required_argument, NULL, 0}, {"anchor", required_argument, NULL, 0}, @@ -984,15 +981,15 @@ static void parse_args(struct tofi *tofi, int argc, char *argv[]) exit(EXIT_FAILURE); } } else if (opt == 'b') { - if (!config_apply(tofi, "bottom", optarg)) { + if (!config_apply(tofi, "anchor", "bottom")) { exit(EXIT_FAILURE); } - } else if (opt == 'P') { - if (!config_apply(tofi, "password", optarg)) { + } else if (opt == 'r') { + if (!config_apply(tofi, "require-match", "true")) { exit(EXIT_FAILURE); } - } else if (opt == 'r') { - if (!config_apply(tofi, "require", optarg)) { + } else if (opt == 'P') { + if (!config_apply(tofi, "hide-input", "true")) { exit(EXIT_FAILURE); } } else if (opt == 'p') { -- cgit v1.2.3