labwc/include/config/rcxml.h

60 lines
1 KiB
C
Raw Normal View History

2021-11-13 21:56:53 +00:00
/* SPDX-License-Identifier: GPL-2.0-only */
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>
#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 {
/* core */
bool xdg_shell_server_side_deco;
int gap;
2021-10-22 20:23:09 +01:00
bool adaptive_sync;
/* focus */
2021-05-27 02:11:11 +03:00
bool focus_follow_mouse;
bool raise_on_focus;
/* theme */
char *theme_name;
2021-03-30 22:39:52 +01:00
int corner_radius;
char *font_name_activewindow;
char *font_name_menuitem;
2021-12-06 17:44:28 -05:00
char *font_name_osd;
int font_size_activewindow;
int font_size_menuitem;
2021-12-06 17:44:28 -05:00
int font_size_osd;
/* keyboard */
int repeat_rate;
int repeat_delay;
2020-06-16 07:21:53 +01:00
struct wl_list keybinds;
/* mouse */
long doubleclick_time; /* in ms */
struct wl_list mousebinds;
/* libinput */
2021-10-15 10:26:00 -04:00
struct wl_list libinput_categories;
2021-10-24 12:08:30 -04:00
/* resistance */
int screen_edge_strength;
/* window snapping */
int snap_edge_range;
bool snap_top_maximize;
2020-06-05 23:04:54 +01:00
};
extern struct rcxml rc;
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 */