添加从 Xresources 中读取配置功能

This commit is contained in:
2025-12-20 22:47:58 +08:00
parent 364a00fb7c
commit 8eeeff5f3b
6 changed files with 100 additions and 6 deletions

View File

@@ -2,6 +2,7 @@
#include <stdint.h>
#include <xcb/xcb_keysyms.h>
#include <xcb/xcb_xrm.h>
#include <xkbcommon/xkbcommon.h>
#include "types.h"
@@ -22,8 +23,13 @@ typedef struct wm_t {
monitor_t *current_monitor;
const layout_t *layout_list;
char *font_family;
uint32_t font_size;
uint32_t dpi;
xcb_connection_t *xcb_conn;
xcb_screen_t *screen;
xcb_xrm_database_t *xrm;
xcb_key_symbols_t *key_symbols;
xcb_window_t wm_check_window;
int default_screen;