添加快捷键设置
This commit is contained in:
19
src/config.h
19
src/config.h
@@ -1,11 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <X11/keysym.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <xcb/xproto.h>
|
||||
|
||||
#include "action.h"
|
||||
#include "types.h"
|
||||
|
||||
/* 壁纸列表,支持通配符和 shell 环境变量拼接,最后以 NULL 结尾 */
|
||||
/* 壁纸列表,支持通配符和 shell 环境变量拼接 */
|
||||
const char *wallpapers[] = {};
|
||||
/* 壁纸切换间隔(单位:秒),0 表示不切换 */
|
||||
const uint32_t wallpaper_interval = 0;
|
||||
@@ -59,6 +61,19 @@ const rule_t rules[] = {
|
||||
{.class = "Emacs", .monitor_amount = 2, .monitor_index = 0, .tags = 1 << 1},
|
||||
};
|
||||
|
||||
#define SUPER XCB_MOD_MASK_4
|
||||
#define ALT XCB_MOD_MASK_1
|
||||
#define CTRL XCB_MOD_MASK_CONTROL
|
||||
#define SHIFT XCB_MOD_MASK_SHIFT
|
||||
|
||||
const char launcher[] =
|
||||
"rofi -show combi -modes window,drun,run,ssh,combi,windowcd";
|
||||
const keybinding_t keys[] = {
|
||||
{SUPER, XK_p, spawn, {.ptr = launcher}},
|
||||
{SUPER, XK_q, quit, {.b = false}},
|
||||
{SUPER, XK_r, quit, {.b = true}},
|
||||
};
|
||||
|
||||
const char *const bar_bg = "#222222";
|
||||
const char *const tag_bg = "#222222";
|
||||
const char *const active_tag_bg = "#005577";
|
||||
|
||||
Reference in New Issue
Block a user