From 6d57f03028b4b32b4377d869be8de9a7e6aa55ee Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Mon, 22 Feb 2016 17:27:17 +0100 Subject: Make single bar handle multiple outputs --- swaybar/main.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'swaybar/main.c') diff --git a/swaybar/main.c b/swaybar/main.c index c6bbc7a5..d7534f5d 100644 --- a/swaybar/main.c +++ b/swaybar/main.c @@ -35,7 +35,7 @@ int main(int argc, char **argv) { }; const char *usage = - "Usage: swaybar [options...] \n" + "Usage: swaybar [options...]\n" "\n" " -h, --help Show help message and quit.\n" " -v, --version Show the version number and quit.\n" @@ -95,15 +95,9 @@ int main(int argc, char **argv) { } } - if (argc == optind) { - sway_abort("No output index provided"); - } - - int desired_output = atoi(argv[optind]); - signal(SIGTERM, sig_handler); - bar_setup(&swaybar, socket_path, bar_id, desired_output); + bar_setup(&swaybar, socket_path, bar_id); free(socket_path); free(bar_id); -- cgit v1.2.3