summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 807f57c..c70daea 100644
--- a/src/main.c
+++ b/src/main.c
@@ -680,6 +680,7 @@ static void usage()
" --terminal <command> Terminal to use for command line\n"
" programs in drun mode.\n"
" --hint-font <true|false> Perform font hinting.\n"
+" --multi-instance <true|false> Allow multiple tofi instances at once.\n"
" --late-keyboard-init (EXPERIMENTAL) Delay keyboard\n"
" initialisation until after the first\n"
" draw to screen.\n"
@@ -732,6 +733,7 @@ const struct option long_options[] = {
{"drun-print-exec", required_argument, NULL, 0},
{"terminal", required_argument, NULL, 0},
{"hint-font", required_argument, NULL, 0},
+ {"multi-instance", required_argument, NULL, 0},
{"output", required_argument, NULL, 0},
{"scale", required_argument, NULL, 0},
{"late-keyboard-init", optional_argument, NULL, 'k'},
@@ -906,7 +908,7 @@ int main(int argc, char *argv[])
parse_args(&tofi, argc, argv);
- if (lock_check()) {
+ if (!tofi.multiple_instance && lock_check()) {
log_error("Another instance of tofi is already running.\n");
exit(EXIT_FAILURE);
}