Blob Blame Raw
diff -up easystroke-0.6.0/main.cc.toggle easystroke-0.6.0/main.cc
--- easystroke-0.6.0/main.cc.toggle	2019-10-18 14:59:37.517415326 -0400
+++ easystroke-0.6.0/main.cc	2019-10-18 15:00:55.869769196 -0400
@@ -320,6 +320,8 @@ int App::on_command_line(const Glib::Ref
 			disabled.set(true);
 		} else if (!strcmp(arg[i], "enable")) {
 			disabled.set(false);
+		} else if (!strcmp(arg[i], "toggle")) {
+			disabled.set(!disabled.get());
 		} else if (!strcmp(arg[i], "about")) {
 			win->show_about();
 		} else if (!strcmp(arg[i], "quit")) {
@@ -437,6 +439,7 @@ void App::usage(const char *me) {
 	printf("  hide                   Hide configuration window\n");
 	printf("  disable                Disable easystroke\n");
 	printf("  enable                 Enable easystroke\n");
+	printf("  toggle                 Toggle easystroke\n");
 	printf("  about                  Show about dialog\n");
 	printf("  quit                   Quit easystroke\n");
 	printf("\n");