diff options
| author | Johannes Herman <johannes.herman@gmail.com> | 2025-08-12 12:10:56 +0200 |
|---|---|---|
| committer | Johannes Herman <johannes.herman@gmail.com> | 2025-08-12 12:10:56 +0200 |
| commit | c58369db1c313ca3d62c5765c1ca0cbd61a3892d (patch) | |
| tree | 112586f3f01833e44d661e080d6e0ecc21b61de2 /config.def.h | |
| parent | 5f7c6f8d08f336c5d18e67c145319a70abe4f61c (diff) | |
added tablet
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h index 36fa943..fc74d4c 100644 --- a/config.def.h +++ b/config.def.h @@ -4,15 +4,16 @@ ((hex >> 8) & 0xFF) / 255.0f, \ (hex & 0xFF) / 255.0f } /* appearance */ +static const int tabletmaptosurface = 0; /* map tablet input to surface(1) or monitor(0) */ static const int sloppyfocus = 1; /* focus follows mouse */ static const int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */ static const int smartborders = 1; /* 1 means no outer gap when there is only one window */ static const int smartgaps = 1; /* 1 means no outer gap when there is only one window */ static int gaps = 1; /* 1 means gaps between windows are added */ -static const unsigned int gappx = 10; /* gap pixel between windows */ +static const unsigned int gappx = 8; /* gap pixel between windows */ static const unsigned int borderpx = 3; /* border pixel of windows */ static const float rootcolor[] = COLOR(0x282828ff); -static const float bordercolor[] = COLOR(0x7c6f64ff); +static const float bordercolor[] = COLOR(0x282828ee); static const float focuscolor[] = COLOR(0x458588ff); static const float urgentcolor[] = COLOR(0xcc241dff); /* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */ @@ -134,12 +135,16 @@ static const char *alttermcmd[] = { "foot", NULL }; static const char *browsercmd[] = { "firefox", NULL }; static const char *menucmd[] = { "bemenu-run", NULL }; +static const char *volume_raise[] = { "volume", "raise", NULL }; +static const char *volume_lower[] = { "volume", "lower", NULL }; +static const char *volume_mute[] = { "volume", "mute", NULL }; + static const Key keys[] = { /* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */ /* modifier key function argument */ { MODKEY, XKB_KEY_d, spawn, {.v = menucmd} }, { MODKEY, XKB_KEY_q, spawn, {.v = termcmd} }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_q, spawn, {.v = alttermcmd} }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Q, spawn, {.v = alttermcmd} }, { MODKEY, XKB_KEY_w, spawn, {.v = browsercmd} }, { MODKEY, XKB_KEY_j, focusstack, {.i = +1} }, { MODKEY, XKB_KEY_k, focusstack, {.i = -1} }, @@ -147,18 +152,28 @@ static const Key keys[] = { { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_L, incnmaster, {.i = -1} }, { MODKEY, XKB_KEY_h, setmfact, {.f = -0.05f} }, { MODKEY, XKB_KEY_l, setmfact, {.f = +0.05f} }, + { MODKEY, XKB_KEY_f, togglefullscreen, {0} }, { MODKEY, XKB_KEY_Return, zoom, {0} }, { MODKEY, XKB_KEY_Tab, view, {0} }, { MODKEY, XKB_KEY_g, togglegaps, {0} }, { MODKEY, XKB_KEY_p, togglesticky, {0} }, { MODKEY, XKB_KEY_c, killclient, {0} }, + { MODKEY, XKB_KEY_s, spawn, SHCMD("snap") }, + // { MODKEY|ShiftMask, XK_s, spawn, SHCMD("snap -s") }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_D, spawn, SHCMD("vis pop-cal 60") }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_C, spawn, SHCMD("vis pop-clock 1") }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_B, spawn, SHCMD("vis pop-bat 5") }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_N, spawn, SHCMD("vis pop-net 10") }, + { MODKEY, XKB_KEY_Escape, spawn, SHCMD("vis dismiss") }, + { MODKEY|WLR_MODIFIER_CTRL, XKB_KEY_v, spawn, {.v = volume_mute } }, + { MODKEY, XKB_KEY_v, spawn, {.v = volume_raise } }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_V, spawn, {.v = volume_lower } }, { 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_s, setlayout, {.v = &layouts[3]} }, - { MODKEY, XKB_KEY_space, setlayout, {0} }, + // { MODKEY, XKB_KEY_s, setlayout, {.v = &layouts[3]} }, + // { MODKEY, XKB_KEY_space, setlayout, {0} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} }, - { MODKEY, XKB_KEY_f, togglefullscreen, {0} }, { MODKEY, XKB_KEY_0, view, {.ui = ~0} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_equal, tag, {.ui = ~0} }, { MODKEY, XKB_KEY_comma, focusmon, {.i = WLR_DIRECTION_LEFT} }, @@ -175,6 +190,10 @@ static const Key keys[] = { TAGKEYS( XKB_KEY_8, XKB_KEY_parenleft, 7), TAGKEYS( XKB_KEY_9, XKB_KEY_parenright, 8), { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_M, quit, {0} }, + { 0, XKB_KEY_XF86AudioMute, spawn, {.v = volume_mute } }, + { 0, XKB_KEY_XF86AudioRaiseVolume, spawn, {.v = volume_raise } }, + { 0, XKB_KEY_XF86AudioLowerVolume, spawn, {.v = volume_lower } }, + { 0, XKB_KEY_XF86AudioMicMute, spawn, SHCMD("mic mute") }, /* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */ { WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_Terminate_Server, quit, {0} }, |
