diff options
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/main.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/swaybar/main.c b/swaybar/main.c index f2f0f7f7..65d2a493 100644 --- a/swaybar/main.c +++ b/swaybar/main.c | |||
@@ -127,7 +127,6 @@ void ipc_update_workspaces() { | |||
127 | ws->focused = json_object_get_boolean(focused); | 127 | ws->focused = json_object_get_boolean(focused); |
128 | ws->urgent = json_object_get_boolean(urgent); | 128 | ws->urgent = json_object_get_boolean(urgent); |
129 | list_add(workspaces, ws); | 129 | list_add(workspaces, ws); |
130 | sway_log(L_INFO, "Handling workspace %s", ws->name); | ||
131 | } | 130 | } |
132 | 131 | ||
133 | json_object_put(num); | 132 | json_object_put(num); |
@@ -165,7 +164,6 @@ void bar_ipc_init(int outputi, const char *bar_id) { | |||
165 | output = strdup(json_object_get_string(name)); | 164 | output = strdup(json_object_get_string(name)); |
166 | free(res); | 165 | free(res); |
167 | json_object_put(outputs); | 166 | json_object_put(outputs); |
168 | sway_log(L_INFO, "Running on output %s", output); | ||
169 | 167 | ||
170 | len = strlen(bar_id); | 168 | len = strlen(bar_id); |
171 | res = ipc_single_command(socketfd, IPC_GET_BAR_CONFIG, bar_id, &len); | 169 | res = ipc_single_command(socketfd, IPC_GET_BAR_CONFIG, bar_id, &len); |
@@ -265,7 +263,6 @@ void bar_ipc_init(int outputi, const char *bar_id) { | |||
265 | const char *subscribe_json = "[ \"workspace\" ]"; | 263 | const char *subscribe_json = "[ \"workspace\" ]"; |
266 | len = strlen(subscribe_json); | 264 | len = strlen(subscribe_json); |
267 | res = ipc_single_command(socketfd, IPC_SUBSCRIBE, subscribe_json, &len); | 265 | res = ipc_single_command(socketfd, IPC_SUBSCRIBE, subscribe_json, &len); |
268 | sway_log(L_INFO, "%s", res); | ||
269 | 266 | ||
270 | ipc_update_workspaces(); | 267 | ipc_update_workspaces(); |
271 | } | 268 | } |
@@ -284,10 +281,8 @@ void update() { | |||
284 | } | 281 | } |
285 | } | 282 | } |
286 | if (ioctl(socketfd, FIONREAD, &pending) != -1 && pending > 0) { | 283 | if (ioctl(socketfd, FIONREAD, &pending) != -1 && pending > 0) { |
287 | sway_log(L_INFO, "data available"); | ||
288 | uint32_t len; | 284 | uint32_t len; |
289 | char *buf = ipc_recv_response(socketfd, &len); | 285 | char *buf = ipc_recv_response(socketfd, &len); |
290 | sway_log(L_INFO, "%s", buf); | ||
291 | free(buf); | 286 | free(buf); |
292 | ipc_update_workspaces(); | 287 | ipc_update_workspaces(); |
293 | } | 288 | } |
@@ -408,7 +403,6 @@ int main(int argc, char **argv) { | |||
408 | } | 403 | } |
409 | 404 | ||
410 | int desired_output = atoi(argv[optind]); | 405 | int desired_output = atoi(argv[optind]); |
411 | sway_log(L_INFO, "Using output %d of %d", desired_output, registry->outputs->length); | ||
412 | struct output_state *output = registry->outputs->items[desired_output]; | 406 | struct output_state *output = registry->outputs->items[desired_output]; |
413 | 407 | ||
414 | bar_ipc_init(desired_output, bar_id); | 408 | bar_ipc_init(desired_output, bar_id); |