2020-08-03 20:56:38 +01:00
|
|
|
#ifndef __LABWC_RCXML_H
|
|
|
|
|
#define __LABWC_RCXML_H
|
2020-06-05 23:04:54 +01:00
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
2020-09-28 20:41:41 +01:00
|
|
|
#include <stdio.h>
|
2020-06-16 07:21:53 +01:00
|
|
|
#include <wayland-server-core.h>
|
2020-06-05 23:04:54 +01:00
|
|
|
|
2020-07-31 21:31:03 +01:00
|
|
|
#include "common/buf.h"
|
2021-10-15 10:26:00 -04:00
|
|
|
#include "config/libinput.h"
|
2020-06-19 22:00:22 +01:00
|
|
|
|
2020-06-05 23:04:54 +01:00
|
|
|
struct rcxml {
|
2021-10-22 20:24:39 +01:00
|
|
|
|
|
|
|
|
/* core */
|
2020-09-15 21:10:02 +01:00
|
|
|
bool xdg_shell_server_side_deco;
|
2021-08-22 14:32:19 +01:00
|
|
|
int gap;
|
2021-10-22 20:23:09 +01:00
|
|
|
bool adaptive_sync;
|
2021-10-23 22:31:39 -04:00
|
|
|
int screen_edge_strength;
|
2021-10-22 20:24:39 +01:00
|
|
|
|
|
|
|
|
/* focus */
|
2021-05-27 02:11:11 +03:00
|
|
|
bool focus_follow_mouse;
|
|
|
|
|
bool raise_on_focus;
|
2021-10-22 20:24:39 +01:00
|
|
|
|
|
|
|
|
/* theme */
|
2020-07-09 22:41:54 +01:00
|
|
|
char *theme_name;
|
2021-03-30 22:39:52 +01:00
|
|
|
int corner_radius;
|
2020-07-31 11:11:50 +01:00
|
|
|
char *font_name_activewindow;
|
2021-08-20 20:27:52 +01:00
|
|
|
char *font_name_menuitem;
|
2020-07-31 11:11:50 +01:00
|
|
|
int font_size_activewindow;
|
2021-08-20 20:27:52 +01:00
|
|
|
int font_size_menuitem;
|
2021-10-22 20:24:39 +01:00
|
|
|
|
|
|
|
|
/* keyboard */
|
|
|
|
|
int repeat_rate;
|
|
|
|
|
int repeat_delay;
|
2020-06-16 07:21:53 +01:00
|
|
|
struct wl_list keybinds;
|
2021-10-22 20:24:39 +01:00
|
|
|
|
|
|
|
|
/* mouse */
|
2021-08-29 18:31:57 -04:00
|
|
|
long doubleclick_time; /* in ms */
|
2021-10-22 20:24:39 +01:00
|
|
|
struct wl_list mousebinds;
|
|
|
|
|
|
|
|
|
|
/* libinput */
|
2021-10-15 10:26:00 -04:00
|
|
|
struct wl_list libinput_categories;
|
2020-06-05 23:04:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern struct rcxml rc;
|
|
|
|
|
|
2020-06-09 21:40:46 +01:00
|
|
|
void rcxml_parse_xml(struct buf *b);
|
2020-06-05 23:04:54 +01:00
|
|
|
void rcxml_read(const char *filename);
|
2020-08-13 20:18:48 +01:00
|
|
|
void rcxml_finish(void);
|
2020-06-05 23:04:54 +01:00
|
|
|
|
2020-08-03 20:56:38 +01:00
|
|
|
#endif /* __LABWC_RCXML_H */
|