修改规则格式
This commit is contained in:
@@ -57,21 +57,26 @@ typedef struct wallpaper_config_t {
|
||||
char **path_list;
|
||||
} wallpaper_config_t;
|
||||
|
||||
typedef struct rule_t {
|
||||
const char *class;
|
||||
const char *instance;
|
||||
const char *title;
|
||||
|
||||
/* 规则适用的屏幕总数,若设置为 0 ,则此条规则适用于任意屏幕数 */
|
||||
/* 窗口默认屏幕和 tags */
|
||||
typedef struct rule_tag_t {
|
||||
const uint32_t monitor_amount;
|
||||
|
||||
uint32_t tags; /* tags 必须设置为大于 0 才是有效设置 */
|
||||
uint32_t monitor_index; /* 仅当 tags 为有效设置时该设置才生效 */
|
||||
|
||||
uint32_t monitor_index;
|
||||
uint32_t tags;
|
||||
} rule_tag_t;
|
||||
typedef struct rule_action_t {
|
||||
bool switch_to_tag;
|
||||
bool fullscreen;
|
||||
bool maximize;
|
||||
bool floating;
|
||||
} rule_action_t;
|
||||
/* 新建窗口规则 */
|
||||
typedef struct rule_t {
|
||||
/* 规则匹配字段组 */
|
||||
const char *class;
|
||||
const char *instance;
|
||||
const char *title;
|
||||
const rule_tag_t *tag; /* 默认所在屏幕和 tags 设置,以 {0} 结尾 */
|
||||
const rule_action_t action;
|
||||
} rule_t;
|
||||
|
||||
typedef union user_action_arg_t {
|
||||
|
||||
Reference in New Issue
Block a user