From 0609c1bf3e6ff051b382c006bd1368ea6da081ae Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Sat, 1 Jan 2011 22:11:44 +0100 Subject: [PATCH] Add font-option to i3-input --- i3-input/main.c | 8 ++++++-- man/i3-input.man | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/i3-input/main.c b/i3-input/main.c index 2a3f02fd..581386d2 100644 --- a/i3-input/main.c +++ b/i3-input/main.c @@ -267,11 +267,12 @@ int main(int argc, char *argv[]) { {"limit", required_argument, 0, 'l'}, {"prompt", required_argument, 0, 'P'}, {"prefix", required_argument, 0, 'p'}, + {"font", required_argument, 0, 'f'}, {"help", no_argument, 0, 'h'}, {0, 0, 0, 0} }; - char *options_string = "s:p:P:l:vh"; + char *options_string = "s:p:P:f:l:vh"; while ((o = getopt_long(argc, argv, options_string, long_options, &option_index)) != -1) { switch (o) { @@ -290,9 +291,12 @@ int main(int argc, char *argv[]) { case 'P': prompt = strdup(optarg); break; + case 'f': + pattern = strdup(optarg); + break; case 'h': printf("i3-input " I3_VERSION); - printf("i3-input [-s ] [-p ] [-l ] [-P ] [-v]\n"); + printf("i3-input [-s ] [-p ] [-l ] [-P ] [-f ] [-v]\n"); return 0; } } diff --git a/man/i3-input.man b/man/i3-input.man index 5b7ce6d9..fee4d92e 100644 --- a/man/i3-input.man +++ b/man/i3-input.man @@ -9,7 +9,7 @@ i3-input - interactively take a command for i3 window manager == SYNOPSIS -i3-input [-s ] [-p ] [-l ] [-P ] [-v] +i3-input [-s ] [-p ] [-l ] [-P ] [-f ] [-v] == DESCRIPTION -- 2.39.5