aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-12-16 19:37:03 -0500
committerDrew DeVault <sir@cmpwn.com>2015-12-16 19:37:03 -0500
commit5a9cc9644648c70b330b9b3dc866ddb2a7e57a7a (patch)
tree19838b78c5762ecd2414f172705d33fc54044b26
parent03787871d078ef8761af74404280ebcc3bfb5770 (diff)
Make swaybar a little quieter
-rw-r--r--swaybar/main.c6
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() {
ws->focused = json_object_get_boolean(focused);
ws->urgent = json_object_get_boolean(urgent);
list_add(workspaces, ws);
- sway_log(L_INFO, "Handling workspace %s", ws->name);
}
json_object_put(num);
@@ -165,7 +164,6 @@ void bar_ipc_init(int outputi, const char *bar_id) {
output = strdup(json_object_get_string(name));
free(res);
json_object_put(outputs);
- sway_log(L_INFO, "Running on output %s", output);
len = strlen(bar_id);
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) {
const char *subscribe_json = "[ \"workspace\" ]";
len = strlen(subscribe_json);
res = ipc_single_command(socketfd, IPC_SUBSCRIBE, subscribe_json, &len);
- sway_log(L_INFO, "%s", res);
ipc_update_workspaces();
}
@@ -284,10 +281,8 @@ void update() {
}
}
if (ioctl(socketfd, FIONREAD, &pending) != -1 && pending > 0) {
- sway_log(L_INFO, "data available");
uint32_t len;
char *buf = ipc_recv_response(socketfd, &len);
- sway_log(L_INFO, "%s", buf);
free(buf);
ipc_update_workspaces();
}
@@ -408,7 +403,6 @@ int main(int argc, char **argv) {
}
int desired_output = atoi(argv[optind]);
- sway_log(L_INFO, "Using output %d of %d", desired_output, registry->outputs->length);
struct output_state *output = registry->outputs->items[desired_output];
bar_ipc_init(desired_output, bar_id);