2017-09-03 00:45:45 -04:00
|
|
|
#pragma once
|
|
|
|
|
2017-09-06 02:35:29 -04:00
|
|
|
#include "settings.hpp"
|
|
|
|
|
|
|
|
#if not WITH_XCURSOR
|
|
|
|
#error "Not built with support for xcb-cursor..."
|
|
|
|
#endif
|
2017-09-03 00:45:45 -04:00
|
|
|
|
|
|
|
#include <xcb/xcb_cursor.h>
|
|
|
|
|
|
|
|
#include "common.hpp"
|
|
|
|
#include "x11/connection.hpp"
|
|
|
|
#include "utils/string.hpp"
|
|
|
|
|
|
|
|
POLYBAR_NS
|
|
|
|
|
|
|
|
namespace cursor_util {
|
2018-08-24 07:37:45 -04:00
|
|
|
static const std::map<string, vector<string>> cursors = {
|
2017-09-08 19:45:16 -04:00
|
|
|
{"pointer", {"pointing_hand", "pointer", "hand", "hand1", "hand2", "e29285e634086352946a0e7090d73106", "9d800788f1b08800ae810202380a0822"}},
|
|
|
|
{"default", {"left_ptr", "arrow", "dnd-none", "op_left_arrow"}},
|
|
|
|
{"ns-resize", {"size_ver", "sb_v_double_arrow", "v_double_arrow", "n-resize", "s-resize", "col-resize", "top_side", "bottom_side", "base_arrow_up", "base_arrow_down", "based_arrow_down", "based_arrow_up", "00008160000006810000408080010102"}}
|
|
|
|
};
|
|
|
|
bool valid(string name);
|
2017-09-03 00:45:45 -04:00
|
|
|
bool set_cursor(xcb_connection_t *c, xcb_screen_t *screen, xcb_window_t w, string name);
|
|
|
|
}
|
|
|
|
|
|
|
|
POLYBAR_NS_END
|