diff options
| author | Joe <rbo@gmx.us> | 2025-02-28 19:54:49 +0100 | 
|---|---|---|
| committer | Joe <rbo@gmx.us> | 2025-02-28 19:54:49 +0100 | 
| commit | ac7e0e304c01e2e77e2622bc8d9599f728120077 (patch) | |
| tree | 39bf047a1b0e36cbfcaac9082548a8a137042de7 | |
| parent | movestacked (diff) | |
| download | dwl-ac7e0e304c01e2e77e2622bc8d9599f728120077.tar.gz dwl-ac7e0e304c01e2e77e2622bc8d9599f728120077.tar.bz2 dwl-ac7e0e304c01e2e77e2622bc8d9599f728120077.tar.xz dwl-ac7e0e304c01e2e77e2622bc8d9599f728120077.tar.zst dwl-ac7e0e304c01e2e77e2622bc8d9599f728120077.zip | |
conf
Diffstat (limited to '')
| -rw-r--r-- | config.def.h | 86 | 
1 files changed, 48 insertions, 38 deletions
| diff --git a/config.def.h b/config.def.h index eec3800..bc5d73d 100644 --- a/config.def.h +++ b/config.def.h @@ -146,44 +146,54 @@ static const char *browser_cmd[] = { "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_p,          spawn,          {.v = menucmd} }, -	{ MODKEY,                    XKB_KEY_Return,     spawn,          {.v = termcmd} }, -	{ MODKEY,                    XKB_KEY_F3,         spawn,          {.v = browser_cmd } }, -	{ MODKEY,                    XKB_KEY_b,          togglebar,      {0} }, -	{ MODKEY,                    XKB_KEY_j,          focusstack,     {.i = +1} }, -	{ MODKEY,                    XKB_KEY_k,          focusstack,     {.i = -1} }, -	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_J,          movestack,      {.i = +1} }, -	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_K,          movestack,      {.i = -1} }, -	{ MODKEY,                    XKB_KEY_i,          incnmaster,     {.i = +1} }, -	{ MODKEY,                    XKB_KEY_d,          incnmaster,     {.i = -1} }, -	{ MODKEY|WLR_MODIFIER_CTRL,  XKB_KEY_h,          setmfact,       {.f = -0.05f} }, -	{ MODKEY|WLR_MODIFIER_CTRL,  XKB_KEY_l,          setmfact,       {.f = +0.05f} }, -	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return,     zoom,           {0} }, -	{ METAKEY,                   XKB_KEY_Escape,     view,           {0} }, -	{ MODKEY,                    XKB_KEY_q,          killclient,     {0} }, -	{ MODKEY,                    XKB_KEY_s,          setlayout,      {.v = &layouts[0]} }, -	{ MODKEY,                    XKB_KEY_n,          setlayout,      {.v = &layouts[1]} }, -	{ MODKEY,                    XKB_KEY_m,          setlayout,      {.v = &layouts[2]} }, -	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space,      setlayout,      {0} }, -	{ MODKEY,                    XKB_KEY_space,      togglefloating, {0} }, -	{ MODKEY,                    XKB_KEY_f,          togglefullscreen, {0} }, -	{ MODKEY,                    XKB_KEY_0,          view,           {.ui = ~0} }, -	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_parenright, tag,            {.ui = ~0} }, -	{ MODKEY,                    XKB_KEY_h,          focusmon,       {.i = WLR_DIRECTION_LEFT} }, -	{ MODKEY,                    XKB_KEY_l,          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} }, -	TAGKEYS(          XKB_KEY_1, XKB_KEY_exclam,                     0), -	TAGKEYS(          XKB_KEY_2, XKB_KEY_at,                         1), -	TAGKEYS(          XKB_KEY_3, XKB_KEY_numbersign,                 2), -	TAGKEYS(          XKB_KEY_4, XKB_KEY_dollar,                     3), -	TAGKEYS(          XKB_KEY_5, XKB_KEY_percent,                    4), -	TAGKEYS(          XKB_KEY_6, XKB_KEY_asciicircum,                5), -	TAGKEYS(          XKB_KEY_7, XKB_KEY_ampersand,                  6), -	TAGKEYS(          XKB_KEY_8, XKB_KEY_asterisk,                   7), -	TAGKEYS(          XKB_KEY_9, XKB_KEY_parenleft,                  8), -	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_E,          quit,           {0} }, +	/* modifier                  key                    function          argument */ +	{ MODKEY,                    XKB_KEY_p,             spawn,            {.v = menucmd} }, +	{ MODKEY,                    XKB_KEY_Return,        spawn,            {.v = termcmd} }, +	{ MODKEY,                    XKB_KEY_F3,            spawn,            {.v = browser_cmd } }, +	{ MODKEY,                    XKB_KEY_b,             togglebar,        {0} }, +	{ MODKEY,                    XKB_KEY_j,             focusstack,       {.i = +1} }, +	{ MODKEY,                    XKB_KEY_k,             focusstack,       {.i = -1} }, +	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_J,             movestack,        {.i = +1} }, +	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_K,             movestack,        {.i = -1} }, +	{ MODKEY,                    XKB_KEY_i,             incnmaster,       {.i = +1} }, +	{ MODKEY,                    XKB_KEY_d,             incnmaster,       {.i = -1} }, +	{ MODKEY|WLR_MODIFIER_CTRL,  XKB_KEY_a,             incnmaster,       {.i = +1} }, +	{ MODKEY|WLR_MODIFIER_CTRL,  XKB_KEY_x,             incnmaster,       {.i = -1} }, +	{ MODKEY|WLR_MODIFIER_CTRL,  XKB_KEY_minus,         setmfact,         {.f = -0.025f} }, +	{ MODKEY|WLR_MODIFIER_CTRL,  XKB_KEY_equal,         setmfact,         {.f = +0.025f} }, +	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return,        zoom,             {0} }, +	{ METAKEY,                   XKB_KEY_Escape,        view,             {0} }, +	{ MODKEY,                    XKB_KEY_q,             killclient,       {0} }, +	{ MODKEY,                    XKB_KEY_s,             setlayout,        {.v = &layouts[0]} }, +	{ MODKEY,                    XKB_KEY_n,             setlayout,        {.v = &layouts[1]} }, +	{ MODKEY,                    XKB_KEY_m,             setlayout,        {.v = &layouts[2]} }, +	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space,         setlayout,        {0} }, +	{ MODKEY,                    XKB_KEY_space,         togglefloating,   {0} }, +	{ MODKEY,                    XKB_KEY_f,             togglefullscreen, {0} }, +	{ MODKEY,                    XKB_KEY_0,             view,             {.ui = ~0} }, +	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_parenright,    tag,              {.ui = ~0} }, +	{ MODKEY,                    XKB_KEY_bracketleft,   focusmon,         {.i = WLR_DIRECTION_LEFT} }, +	{ MODKEY,                    XKB_KEY_bracketright,  focusmon,         {.i = WLR_DIRECTION_RIGHT} }, +	{ MODKEY,                    XKB_KEY_h,             focusmon,         {.i = WLR_DIRECTION_LEFT} }, +	{ MODKEY,                    XKB_KEY_l,             focusmon,         {.i = WLR_DIRECTION_RIGHT} }, +	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_H,             tagmon,           {.i = WLR_DIRECTION_LEFT} }, +	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_L,             tagmon,           {.i = WLR_DIRECTION_RIGHT} }, +	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_bracketleft,   tagmon,           {.i = WLR_DIRECTION_LEFT} }, +	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_bracketright,  tagmon,           {.i = WLR_DIRECTION_RIGHT} }, +	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_H,             focusmon,         {.i = WLR_DIRECTION_LEFT} }, +	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_L,             focusmon,         {.i = WLR_DIRECTION_RIGHT} }, +	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_bracketleft,   focusmon,         {.i = WLR_DIRECTION_LEFT} }, +	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_bracketright,  focusmon,         {.i = WLR_DIRECTION_RIGHT} }, +	TAGKEYS(          XKB_KEY_1, XKB_KEY_exclam,                          0), +	TAGKEYS(          XKB_KEY_2, XKB_KEY_at,                              1), +	TAGKEYS(          XKB_KEY_3, XKB_KEY_numbersign,                      2), +	TAGKEYS(          XKB_KEY_4, XKB_KEY_dollar,                          3), +	TAGKEYS(          XKB_KEY_5, XKB_KEY_percent,                         4), +	TAGKEYS(          XKB_KEY_6, XKB_KEY_asciicircum,                     5), +	TAGKEYS(          XKB_KEY_7, XKB_KEY_ampersand,                       6), +	TAGKEYS(          XKB_KEY_8, XKB_KEY_asterisk,                        7), +	TAGKEYS(          XKB_KEY_9, XKB_KEY_parenleft,                       8), +	{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_E,             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} }, | 
