mirror of
https://codeberg.org/FabricSoul/dwl.git
synced 2025-08-03 12:10:22 -04:00
add config.h
This commit is contained in:
parent
c003057254
commit
c5562e62c5
1 changed files with 16 additions and 13 deletions
23
config.h
23
config.h
|
@ -24,8 +24,12 @@ static int log_level = WLR_ERROR;
|
|||
static const Rule rules[] = {
|
||||
/* app_id title tags mask isfloating monitor */
|
||||
/* examples: */
|
||||
{ "Gimp_EXAMPLE", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
|
||||
{ "firefox_EXAMPLE", NULL, 1 << 8, 0, -1 }, /* Start on ONLY tag "9" */
|
||||
{ "EVE", NULL, 1 << 0, 0, -1 }, // Workspace 1 for EVE
|
||||
{ "QQ", NULL, 1 << 5, 0, -1 }, // Workspace 6 for QQ
|
||||
{ "discord", NULL, 1 << 5, 0, -1 }, // Workspace 6 for discord
|
||||
{ "kitty", NULL, 1 << 3, 0, -1 }, // Workspace 4 for kitty
|
||||
{ "firefox", NULL, 1 << 4, 0, -1 }, // Workspace 5 for firefox
|
||||
{ NULL, "图片查看器", 0, 1, -1 }, // Float the picture viewer by title
|
||||
};
|
||||
|
||||
/* layout(s) */
|
||||
|
@ -107,13 +111,13 @@ LIBINPUT_CONFIG_TAP_MAP_LMR -- 1/2/3 finger tap maps to left/middle/right
|
|||
static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TAP_MAP_LRM;
|
||||
|
||||
/* If you want to use the windows key for MODKEY, use WLR_MODIFIER_LOGO */
|
||||
#define MODKEY WLR_MODIFIER_LOGO
|
||||
#define MODKEY WLR_MODIFIER_ALT
|
||||
|
||||
#define TAGKEYS(KEY,SKEY,TAG) \
|
||||
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
|
||||
{ MODKEY, KEY, toggleview, {.ui = 1 << TAG} }, \
|
||||
{ MODKEY, SKEY, tag, {.ui = 1 << TAG} }, \
|
||||
{ MODKEY,SKEY,toggletag, {.ui = 1 << TAG} }
|
||||
{ MODKEY|WLR_MODIFIER_CTRL, KEY, toggleview, {.ui = 1 << TAG} }, \
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, SKEY, tag, {.ui = 1 << TAG} }, \
|
||||
{ MODKEY|WLR_MODIFIER_CTRL|WLR_MODIFIER_SHIFT,SKEY,toggletag, {.ui = 1 << TAG} }
|
||||
|
||||
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
||||
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
||||
|
@ -126,8 +130,8 @@ static const char *browsercmd[] = { "firefox", NULL };
|
|||
static const Key keys[] = {
|
||||
/* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */
|
||||
/* modifier key function argument */
|
||||
{ MODKEY, XKB_KEY_Space, spawn, {.v = menucmd} },
|
||||
{ MODKEY, XKB_KEY_Return, spawn, {.v = termcmd} },
|
||||
{ MODKEY, XKB_KEY_space, spawn, {.v = menucmd} },
|
||||
{ MODKEY, XKB_KEY_t, spawn, {.v = termcmd} },
|
||||
{ MODKEY, XKB_KEY_b, spawn, {.v = browsercmd} },
|
||||
{ MODKEY, XKB_KEY_j, focusstack, {.i = +1} },
|
||||
{ MODKEY, XKB_KEY_k, focusstack, {.i = -1} },
|
||||
|
@ -141,8 +145,7 @@ static const Key keys[] = {
|
|||
{ MODKEY, XKB_KEY_t, setlayout, {.v = &layouts[0]} },
|
||||
{ MODKEY, XKB_KEY_f, setlayout, {.v = &layouts[1]} },
|
||||
{ MODKEY, XKB_KEY_m, setlayout, {.v = &layouts[2]} },
|
||||
{ MODKEY, XKB_KEY_space, setlayout, {0} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} },
|
||||
{ MODKEY, XKB_KEY_v, togglefloating, {0} },
|
||||
{ MODKEY, XKB_KEY_e, togglefullscreen, {0} },
|
||||
{ MODKEY, XKB_KEY_0, view, {.ui = ~0} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_parenright, tag, {.ui = ~0} },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue