mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-15 22:05:20 -05:00
Merge pull request #640 from iynaix/mmsg-help
fix: improve help message for mmsg
This commit is contained in:
commit
2ca2ab739d
1 changed files with 41 additions and 6 deletions
47
mmsg/mmsg.c
47
mmsg/mmsg.c
|
|
@ -500,12 +500,47 @@ static const struct wl_registry_listener registry_listener = {
|
|||
|
||||
static void usage(void) {
|
||||
fprintf(stderr,
|
||||
"usage:"
|
||||
"\t%s [-OTLq]\n"
|
||||
"\t%s [-o <output>] -s [-t <tags>] [-l <layout>] [-c <tags>] [-d "
|
||||
"<cmd>,<arg1>,<arg2>,<arg3>,<arg4>,<arg5>]\n"
|
||||
"\t%s [-o <output>] (-g | -w) [-OotlcvmfxekbA]\n",
|
||||
argv0, argv0, argv0);
|
||||
"mmsg - MangoWC IPC\n"
|
||||
"\n"
|
||||
"SYNOPSIS:\n"
|
||||
"\tmmsg [-OTLq]\n"
|
||||
"\tmmsg [-o <output>] -s [-t <tags>] [-l <layout>] [-c <tags>] [-d <cmd>,<arg1>,<arg2>,<arg3>,<arg4>,<arg5>]\n"
|
||||
"\tmmsg [-o <output>] (-g | -w) [-OotlcvmfxekbA]\n"
|
||||
"\n"
|
||||
"OPERATION MODES:\n"
|
||||
"\t-g Get values (tags, layout, focused client)\n"
|
||||
"\t-s Set values (switch tags, layouts)\n"
|
||||
"\t-w Watch mode (stream events)\n"
|
||||
"\n"
|
||||
"GENERAL OPTIONS:\n"
|
||||
"\t-O Get all output (monitor) information\n"
|
||||
"\t-T Get number of tags\n"
|
||||
"\t-L Get all available layouts\n"
|
||||
"\t-q Quit MangoWC\n"
|
||||
"\t-o <output> Select output (monitor)\n"
|
||||
"\n"
|
||||
"GET OPTIONS (used with -g or -w):\n"
|
||||
"\t-O Get output name\n"
|
||||
"\t-o Get output (monitor) focus information\n"
|
||||
"\t-t Get selected tags\n"
|
||||
"\t-l Get current layout\n"
|
||||
"\t-c Get title and appid of focused clients\n"
|
||||
"\t-v Get visibility of statusbar\n"
|
||||
"\t-m Get fullscreen status\n"
|
||||
"\t-f Get floating status\n"
|
||||
"\t-x Get focused client geometry\n"
|
||||
"\t-e Get name of last focused layer\n"
|
||||
"\t-k Get current keyboard layout\n"
|
||||
"\t-b Get current keybind mode\n"
|
||||
"\t-A Get scale factor of monitor\n"
|
||||
"\n"
|
||||
"SET OPTIONS (used with -s):\n"
|
||||
"\t-o <output> Select output (monitor)\n"
|
||||
"\t-t <tags> Set selected tags (can be used with [+-^.] modifiers)\n"
|
||||
"\t-l <layout> Set current layout\n"
|
||||
"\t-c <tags> Get title and appid of focused client\n"
|
||||
"\t-d <cmd>,<args...> Dispatch internal command (max 5 args)\n"
|
||||
);
|
||||
exit(2);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue