/*
 * See LICENSE file for copyright and license details.
 *
 * Configuration variables for ether. These are populated by the Lua config
 * loader in config.c at startup (or reload).
 *
 * This file is included from ether.h after all types are defined.
 */
#ifndef ETHER_CONFIG_H
#define ETHER_CONFIG_H

/* appearance */
extern int sloppyfocus;
extern int bypass_surface_visibility;
extern unsigned int borderpx;
extern float rootcolor[];
extern float bordercolor[];
extern float focuscolor[];
extern float urgentcolor[];
extern float fullscreen_bg[];

/* logging */
extern int log_level;

/* rules */
extern Rule *rules;
extern int nrrules;

/* layouts */
extern Layout *layouts;
extern int nrlayouts;

/* monitors */
extern MonitorRule *monrules;
extern int nrmonrules;

/* keyboard */
extern struct xkb_rule_names xkb_rules;
extern int repeat_rate;
extern int repeat_delay;

/* trackpad */
extern int tap_to_click;
extern int tap_and_drag;
extern int drag_lock;
extern int natural_scrolling;
extern int disable_while_typing;
extern int left_handed;
extern int middle_button_emulation;
extern enum libinput_config_scroll_method scroll_method;
extern enum libinput_config_click_method click_method;
extern uint32_t send_events_mode;
extern enum libinput_config_accel_profile accel_profile;
extern double accel_speed;
extern enum libinput_config_tap_button_map button_map;

/* keybindings */
extern Key *keys;
extern int nrkeys;
extern Button *buttons;
extern int nrbuttons;

/* Load configuration from Lua config file. Returns 0 on success. */
int lua_load_config(const char *path);

/* Free dynamically allocated config arrays. */
void free_config(void);

/* Reload configuration and reapply to running monitors. */
void reload(const Arg *arg);

#endif /* ETHER_CONFIG_H */
