aboutsummaryrefslogtreecommitdiff
path: root/swaybar/main.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-02-27 16:18:50 -0500
committerDrew DeVault <sir@cmpwn.com>2016-02-27 16:18:50 -0500
commit3453910c3e887be900c69394b738e34d9d8ba095 (patch)
tree28e0d8d72557ac57a2f9aed5c94818c8ba20e97f /swaybar/main.c
parent5ff3fb1c0472d974f74c0329a10895cc76c83a55 (diff)
parent67bbcceba1433e41b5edfca32532b7d55a39a395 (diff)
Merge pull request #492 from mikkeloscar/swaybar-multi-output
Display single swaybar on multiple outputs
Diffstat (limited to 'swaybar/main.c')
-rw-r--r--swaybar/main.c10
1 files changed, 2 insertions, 8 deletions
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...] <output>\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);