summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h123
1 files changed, 72 insertions, 51 deletions
diff --git a/config.def.h b/config.def.h
index fc74d4c..514d42d 100644
--- a/config.def.h
+++ b/config.def.h
@@ -9,12 +9,12 @@ 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 int gaps = 0; /* 1 means gaps between windows are added */
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(0x282828ee);
-static const float focuscolor[] = COLOR(0x458588ff);
+static const float focuscolor[] = COLOR(0x689d6aff);
static const float urgentcolor[] = COLOR(0xcc241dff);
/* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */
static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You can also use glsl colors */
@@ -121,10 +121,10 @@ static const int cursor_timeout = 2;
#define MODKEY WLR_MODIFIER_LOGO
#define TAGKEYS(KEY,SKEY,TAG) \
- { MODKEY, KEY, view, {.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} }
+ { MODKEY, -1, KEY, view, {.ui = 1 << TAG} }, \
+ { MODKEY|WLR_MODIFIER_CTRL, -1, KEY, toggleview, {.ui = 1 << TAG} }, \
+ { MODKEY|WLR_MODIFIER_SHIFT, -1, SKEY, tag, {.ui = 1 << TAG} }, \
+ { MODKEY|WLR_MODIFIER_CTRL|WLR_MODIFIER_SHIFT,-1,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 } }
@@ -142,44 +142,68 @@ 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, XKB_KEY_w, spawn, {.v = browsercmd} },
- { MODKEY, XKB_KEY_j, focusstack, {.i = +1} },
- { MODKEY, XKB_KEY_k, focusstack, {.i = -1} },
- { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_H, incnmaster, {.i = +1} },
- { 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|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {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} },
- { MODKEY, XKB_KEY_period, focusmon, {.i = WLR_DIRECTION_RIGHT} },
- { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_less, tagmon, {.i = WLR_DIRECTION_LEFT} },
- { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_greater, tagmon, {.i = WLR_DIRECTION_RIGHT} },
+ /* Window managment */
+ { MODKEY, -1, XKB_KEY_d, spawn, {.v = menucmd} },
+ { MODKEY, -1, XKB_KEY_q, spawn, {.v = termcmd} },
+ { MODKEY|WLR_MODIFIER_SHIFT, -1, XKB_KEY_Q, spawn, {.v = alttermcmd} },
+ { MODKEY, -1, XKB_KEY_w, spawn, {.v = browsercmd} },
+ { MODKEY, -1, XKB_KEY_j, focusstack, {.i = +1} },
+ { MODKEY, -1, XKB_KEY_k, focusstack, {.i = -1} },
+ { MODKEY|WLR_MODIFIER_SHIFT, -1, XKB_KEY_H, incnmaster, {.i = +1} },
+ { MODKEY|WLR_MODIFIER_SHIFT, -1, XKB_KEY_L, incnmaster, {.i = -1} },
+ { MODKEY, -1, XKB_KEY_h, setmfact, {.f = -0.05f} },
+ { MODKEY, -1, XKB_KEY_l, setmfact, {.f = +0.05f} },
+ { MODKEY, -1, XKB_KEY_f, togglefullscreen, {0} },
+ { MODKEY|WLR_MODIFIER_SHIFT, -1, XKB_KEY_space, togglefloating, {0} },
+ { MODKEY, -1, XKB_KEY_Return, zoom, {0} },
+ { MODKEY, -1, XKB_KEY_Tab, view, {0} },
+ { MODKEY, -1, XKB_KEY_g, togglegaps, {0} },
+ { MODKEY, -1, XKB_KEY_p, togglesticky, {0} },
+ { MODKEY, -1, XKB_KEY_c, killclient, {0} },
+
+ /* Layout */
+ { MODKEY, XKB_KEY_t, XKB_KEY_t, setlayout, {.v = &layouts[0]} },
+ { MODKEY, XKB_KEY_t, XKB_KEY_f, setlayout, {.v = &layouts[1]} },
+ { MODKEY, XKB_KEY_t, XKB_KEY_m, setlayout, {.v = &layouts[2]} },
+ { MODKEY, XKB_KEY_t, XKB_KEY_s, setlayout, {.v = &layouts[3]} },
+
+ /* Shortcuts */
+ { MODKEY, -1, XKB_KEY_s, spawn, SHCMD("snap") },
+ // { MODKEY|ShiftMask, -1, XK_s, spawn, SHCMD("snap -s") },
+
+ /* Popups */
+ { MODKEY, XKB_KEY_n, XKB_KEY_d, spawn, SHCMD("vis pop-cal 60") },
+ { MODKEY, XKB_KEY_n, XKB_KEY_c, spawn, SHCMD("vis pop-clock 1") },
+ { MODKEY, XKB_KEY_n, XKB_KEY_b, spawn, SHCMD("vis pop-bat 5") },
+ { MODKEY, XKB_KEY_n, XKB_KEY_n, spawn, SHCMD("vis pop-net 10") },
+ { MODKEY, -1, XKB_KEY_Escape, spawn, SHCMD("vis dismiss") },
+
+ /* Menus */
+ { MODKEY, XKB_KEY_m, XKB_KEY_e, spawn, SHCMD("menu-emoji") },
+ { MODKEY, XKB_KEY_m, XKB_KEY_c, spawn, SHCMD("menu-clip") },
+ { MODKEY, XKB_KEY_m, XKB_KEY_p, spawn, SHCMD("menu-power") },
+
+ /* Media */
+ { MODKEY|WLR_MODIFIER_CTRL, -1, XKB_KEY_v, spawn, {.v = volume_mute } },
+ { MODKEY, -1, XKB_KEY_v, spawn, {.v = volume_raise } },
+ { MODKEY|WLR_MODIFIER_SHIFT, -1, XKB_KEY_V, spawn, {.v = volume_lower } },
+ { MODKEY, -1, XKB_KEY_a, spawn, SHCMD("lampe raise") },
+ { MODKEY|WLR_MODIFIER_SHIFT, -1, XKB_KEY_A, spawn, SHCMD("lampe lower") },
+ { 0, -1, XKB_KEY_XF86AudioMute, spawn, {.v = volume_mute } },
+ { 0, -1, XKB_KEY_XF86AudioRaiseVolume, spawn, {.v = volume_raise } },
+ { 0, -1, XKB_KEY_XF86AudioLowerVolume, spawn, {.v = volume_lower } },
+ { 0, -1, XKB_KEY_XF86AudioMicMute, spawn, SHCMD("mic mute") },
+ { 0, -1, XKB_KEY_XF86RotateWindows, spawn, SHCMD("warrelrole flip") },
+
+
+ // { MODKEY, -1, XKB_KEY_space, setlayout, {0} },
+
+ { MODKEY, -1, XKB_KEY_0, view, {.ui = ~0} },
+ { MODKEY|WLR_MODIFIER_SHIFT, -1, XKB_KEY_equal, tag, {.ui = ~0} },
+ { MODKEY, -1, XKB_KEY_comma, focusmon, {.i = WLR_DIRECTION_LEFT} },
+ { MODKEY, -1, XKB_KEY_period, focusmon, {.i = WLR_DIRECTION_RIGHT} },
+ { MODKEY|WLR_MODIFIER_SHIFT, -1, XKB_KEY_less, tagmon, {.i = WLR_DIRECTION_LEFT} },
+ { MODKEY|WLR_MODIFIER_SHIFT, -1, XKB_KEY_greater, tagmon, {.i = WLR_DIRECTION_RIGHT} },
TAGKEYS( XKB_KEY_1, XKB_KEY_exclam, 0),
TAGKEYS( XKB_KEY_2, XKB_KEY_quotedbl, 1),
TAGKEYS( XKB_KEY_3, XKB_KEY_numbersign, 2),
@@ -189,18 +213,15 @@ static const Key keys[] = {
TAGKEYS( XKB_KEY_7, XKB_KEY_slash, 6),
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") },
+ { MODKEY|WLR_MODIFIER_SHIFT, -1, XKB_KEY_M, quit, {0} },
+
/* 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} },
+ { WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,-1,XKB_KEY_Terminate_Server, quit, {0} },
/* Ctrl-Alt-Fx is used to switch to another VT, if you don't know what a VT is
* do not remove them.
*/
-#define CHVT(n) { WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_XF86Switch_VT_##n, chvt, {.ui = (n)} }
+#define CHVT(n) { WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,-1,XKB_KEY_XF86Switch_VT_##n, chvt, {.ui = (n)} }
CHVT(1), CHVT(2), CHVT(3), CHVT(4), CHVT(5), CHVT(6),
CHVT(7), CHVT(8), CHVT(9), CHVT(10), CHVT(11), CHVT(12),
};