#pragma once #include #include #include "common.hpp" #include "settings.hpp" #include "utils/socket.hpp" #include "utils/string.hpp" #include "x11/extensions/randr.hpp" #include "x11/window.hpp" POLYBAR_NS class connection; namespace bspwm_util { struct payload; using connection_t = unique_ptr; using payload_t = unique_ptr; struct payload { char data[BUFSIZ]{'\0'}; size_t len = 0; }; vector root_windows(connection& conn); xcb_window_t get_restack_sibling(connection& conn, const monitor_t& mon); string get_socket_path(); payload_t make_payload(const string& cmd); connection_t make_connection(); connection_t make_subscriber(); } POLYBAR_NS_END