mirror of
https://codeberg.org/FabricSoul/dwl.git
synced 2025-08-09 14:47:41 -04:00
patch: swallow
This commit is contained in:
parent
93d5c585e4
commit
fc3ca3385c
3 changed files with 364 additions and 9 deletions
18
config.h
18
config.h
|
@ -13,6 +13,8 @@ static const float focuscolor[] = COLOR(0x005577ff);
|
|||
static const float urgentcolor[] = COLOR(0xff0000ff);
|
||||
/* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */
|
||||
static const float fullscreen_bg[] = {0.0f, 0.0f, 0.0f, 1.0f}; /* You can also use glsl colors */
|
||||
static int enableautoswallow = 1; /* enables autoswallowing newly spawned clients */
|
||||
static float swallowborder = 1.0f; /* add this multiplied by borderpx to border when a client is swallowed */
|
||||
|
||||
/* tagging - TAGCOUNT must be no greater than 31 */
|
||||
#define TAGCOUNT (9)
|
||||
|
@ -22,14 +24,12 @@ static int log_level = WLR_ERROR;
|
|||
|
||||
/* NOTE: ALWAYS keep a rule declared even if you don't use rules (e.g leave at least one example) */
|
||||
static const Rule rules[] = {
|
||||
/* app_id title tags mask isfloating monitor */
|
||||
/* examples: */
|
||||
{ "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
|
||||
{ "foot", NULL, 1 << 3, 0, -1 }, // Workspace 4 for kitty
|
||||
{ "qutebrowser", NULL, 1 << 4, 0, -1 }, // Workspace 5 for firefox
|
||||
{ NULL, "图片查看器", 0, 1, -1 }, // Float the picture viewer by title
|
||||
+ /* app_id title tags mask isfloating isterm noswallow monitor */
|
||||
{ "EVE", NULL, 1 << 0, 0, 0, 0, -1 }, // Workspace 1 for EVE
|
||||
{ "QQ", NULL, 1 << 5, 0, 0, 0, -1 }, // Workspace 6 for QQ
|
||||
{ "discord", NULL, 1 << 5, 0, 0, 0, -1 }, // Workspace 6 for discord
|
||||
{ "foot", NULL, 1 << 3, 0, 1, 0, -1 }, // Workspace 4 for kitty
|
||||
{ "qutebrowser", NULL, 1 << 4, 0, 0, 0, -1 }, // Workspace 5 for firefox
|
||||
};
|
||||
|
||||
/* layout(s) */
|
||||
|
@ -148,6 +148,8 @@ static const Key keys[] = {
|
|||
{ MODKEY, XKB_KEY_f, setlayout, {.v = &layouts[2]} },
|
||||
{ MODKEY, XKB_KEY_v, togglefloating, {0} },
|
||||
{ MODKEY, XKB_KEY_e, togglefullscreen, {0} },
|
||||
{ MODKEY, XKB_KEY_a, toggleswallow, {0} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_A, toggleautoswallow,{0} },
|
||||
{ MODKEY, XKB_KEY_0, view, {.ui = ~0} },
|
||||
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_parenright, tag, {.ui = ~0} },
|
||||
TAGKEYS( XKB_KEY_1, XKB_KEY_exclam, 0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue