|
|
@ -281,7 +281,7 @@ int main(int argc, char **argv) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
switch (c) {
|
|
|
|
switch (c) {
|
|
|
|
case 'h': // help
|
|
|
|
case 'h': // help
|
|
|
|
fprintf(stdout, "%s", usage);
|
|
|
|
printf("%s", usage);
|
|
|
|
exit(EXIT_SUCCESS);
|
|
|
|
exit(EXIT_SUCCESS);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'c': // config
|
|
|
|
case 'c': // config
|
|
|
@ -301,7 +301,7 @@ int main(int argc, char **argv) {
|
|
|
|
allow_unsupported_gpu = 1;
|
|
|
|
allow_unsupported_gpu = 1;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'v': // version
|
|
|
|
case 'v': // version
|
|
|
|
fprintf(stdout, "sway version " SWAY_VERSION "\n");
|
|
|
|
printf("sway version " SWAY_VERSION "\n");
|
|
|
|
exit(EXIT_SUCCESS);
|
|
|
|
exit(EXIT_SUCCESS);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'V': // verbose
|
|
|
|
case 'V': // verbose
|
|
|
@ -309,7 +309,7 @@ int main(int argc, char **argv) {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'p': ; // --get-socketpath
|
|
|
|
case 'p': ; // --get-socketpath
|
|
|
|
if (getenv("SWAYSOCK")) {
|
|
|
|
if (getenv("SWAYSOCK")) {
|
|
|
|
fprintf(stdout, "%s\n", getenv("SWAYSOCK"));
|
|
|
|
printf("%s\n", getenv("SWAYSOCK"));
|
|
|
|
exit(EXIT_SUCCESS);
|
|
|
|
exit(EXIT_SUCCESS);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
fprintf(stderr, "sway socket not detected.\n");
|
|
|
|
fprintf(stderr, "sway socket not detected.\n");
|
|
|
|