mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			91 lines
		
	
	
	
		
			1.8 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			91 lines
		
	
	
	
		
			1.8 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0-only */
 | 
						|
#ifndef __LABWC_RCXML_H
 | 
						|
#define __LABWC_RCXML_H
 | 
						|
 | 
						|
#include <stdbool.h>
 | 
						|
#include <stdio.h>
 | 
						|
#include <wayland-server-core.h>
 | 
						|
 | 
						|
#include "common/buf.h"
 | 
						|
#include "common/font.h"
 | 
						|
#include "config/libinput.h"
 | 
						|
#include "theme.h"
 | 
						|
 | 
						|
enum window_switcher_field_content {
 | 
						|
	LAB_FIELD_NONE = 0,
 | 
						|
	LAB_FIELD_TYPE,
 | 
						|
	LAB_FIELD_APP_ID,
 | 
						|
	LAB_FIELD_TITLE,
 | 
						|
};
 | 
						|
 | 
						|
struct window_switcher_field {
 | 
						|
	enum window_switcher_field_content content;
 | 
						|
	int width;
 | 
						|
	struct wl_list link; /* struct rcxml.window_switcher.fields */
 | 
						|
};
 | 
						|
 | 
						|
struct rcxml {
 | 
						|
	char *config_dir;
 | 
						|
 | 
						|
	/* core */
 | 
						|
	bool xdg_shell_server_side_deco;
 | 
						|
	int gap;
 | 
						|
	bool adaptive_sync;
 | 
						|
	bool reuse_output_mode;
 | 
						|
 | 
						|
	/* focus */
 | 
						|
	bool focus_follow_mouse;
 | 
						|
	bool raise_on_focus;
 | 
						|
 | 
						|
	/* theme */
 | 
						|
	char *theme_name;
 | 
						|
	int corner_radius;
 | 
						|
	struct font font_activewindow;
 | 
						|
	struct font font_menuitem;
 | 
						|
	struct font font_osd;
 | 
						|
	/* Pointer to current theme */
 | 
						|
	struct theme *theme;
 | 
						|
 | 
						|
	/* keyboard */
 | 
						|
	int repeat_rate;
 | 
						|
	int repeat_delay;
 | 
						|
	struct wl_list keybinds;   /* struct keybind.link */
 | 
						|
 | 
						|
	/* mouse */
 | 
						|
	long doubleclick_time;     /* in ms */
 | 
						|
	struct wl_list mousebinds; /* struct mousebind.link */
 | 
						|
	double scroll_factor;
 | 
						|
 | 
						|
	/* libinput */
 | 
						|
	struct wl_list libinput_categories;
 | 
						|
 | 
						|
	/* resistance */
 | 
						|
	int screen_edge_strength;
 | 
						|
 | 
						|
	/* window snapping */
 | 
						|
	int snap_edge_range;
 | 
						|
	bool snap_top_maximize;
 | 
						|
 | 
						|
	struct {
 | 
						|
		int popuptime;
 | 
						|
		struct wl_list workspaces;  /* struct workspace.link */
 | 
						|
	} workspace_config;
 | 
						|
 | 
						|
	/* Regions */
 | 
						|
	struct wl_list regions;  /* struct region.link */
 | 
						|
 | 
						|
	struct {
 | 
						|
		bool show;
 | 
						|
		bool preview;
 | 
						|
		bool outlines;
 | 
						|
		struct wl_list fields;  /* struct window_switcher_field.link */
 | 
						|
	} window_switcher;
 | 
						|
};
 | 
						|
 | 
						|
extern struct rcxml rc;
 | 
						|
 | 
						|
void rcxml_parse_xml(struct buf *b);
 | 
						|
void rcxml_read(const char *filename);
 | 
						|
void rcxml_finish(void);
 | 
						|
 | 
						|
#endif /* __LABWC_RCXML_H */
 |