Commit: 2d1408470531bce2edd5d17aef7434ee01252917
Parent: 32615a7aa110269bc7eca86aa98070247951537f
Author: Randy Palamar
Date: Wed, 14 Jun 2023 21:43:19 -0600
sync dwm.1 and config.def.h with changes in this repo
Diffstat:
M | config.def.h | | | 27 | ++++++++++++++++----------- |
M | dwm.1 | | | 64 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------- |
2 files changed, 72 insertions(+), 19 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -1,5 +1,8 @@
/* See LICENSE file for copyright and license details. */
+/* Allow use of special keys */
+#include <X11/XF86keysym.h>
+
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
@@ -46,7 +49,7 @@ static const Rule rules[] = {
};
/* layout(s) */
-static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
+static const float mfact = 0.60; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
static int fakefullscreen = 1;
@@ -85,6 +88,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "st", NULL };
+/* scratchpads */
typedef struct {
const char *name;
const void *cmd;
@@ -102,16 +106,17 @@ static const Key keys[] = {
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0 } },
- { MODKEY|ShiftMask, XK_b, togglebar, {0} },
- { MODKEY, XK_j, focusstack, {.i = +1 } },
- { MODKEY, XK_k, focusstack, {.i = -1 } },
- { MODKEY, XK_i, incnmaster, {.i = +1 } },
- { MODKEY, XK_d, incnmaster, {.i = -1 } },
- { MODKEY, XK_h, setmfact, {.f = -0.05} },
- { MODKEY, XK_l, setmfact, {.f = +0.05} },
- { MODKEY, XK_Return, zoom, {0} },
- { MODKEY, XK_Tab, view, {0} },
- { MODKEY|ShiftMask, XK_c, killclient, {0} },
+
+ { MODKEY|ShiftMask, XK_b, togglebar, {0} },
+ { MODKEY, XK_j, focusstack, {.i = +1 } },
+ { MODKEY, XK_k, focusstack, {.i = -1 } },
+ { MODKEY, XK_i, incnmaster, {.i = +1 } },
+ { MODKEY|ShiftMask, XK_i, incnmaster, {.i = -1 } },
+ { MODKEY, XK_h, setmfact, {.f = -0.01} },
+ { MODKEY, XK_l, setmfact, {.f = +0.01} },
+ { MODKEY, XK_w, zoom, {0} },
+ { MODKEY, XK_Tab, view, {0} },
+ { MODKEY|ShiftMask, XK_c, killclient, {0} },
/* Layouts */
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, /* tiled */
diff --git a/dwm.1 b/dwm.1
@@ -56,11 +56,14 @@ click on a tag label applies that tag to the focused window.
click on a tag label adds/removes that tag to/from the focused window.
.SS Keyboard commands
.TP
-.B Mod1\-Shift\-Return
+.B Mod1\-Return
Start
.BR st(1).
.TP
-.B Mod1\-p
+.B Mod1\-Shift\-Return
+Toggle scratchpad.
+.TP
+.B Mod1\-d
Spawn
.BR dmenu(1)
for launching other programs.
@@ -77,21 +80,42 @@ Send focused window to previous screen, if any.
.B Mod1\-Shift\-.
Send focused window to next screen, if any.
.TP
-.B Mod1\-b
+.B Mod1\-Shift\-b
Toggles bar on and off.
.TP
.B Mod1\-t
Sets tiled layout.
.TP
-.B Mod1\-f
-Sets floating layout.
+.B Mod1\-Shift\-t
+Sets bottomstack layout.
.TP
-.B Mod1\-m
+.B Mod1\-y
Sets monocle layout.
.TP
+.B Mod1\-Shift\-y
+Sets floating layout.
+.TP
+.B Mod1-u
+Sets centermaster layout.
+.TP
+.B Mod1\-Shift\-u
+Sets bottomstack horizontal layout.
+.TP
+.B Mod1-r
+Sets horizontal grid layout.
+.TP
+.B Mod1-Shift-r
+Sets deck layout.
+.TP
.B Mod1\-space
Toggles between current and previous layout.
.TP
+.B Mod1\-f
+Fullscreens focused window.
+.TP
+.B Mod1\-Shift\-f
+Toggles fake fullscreen mode.
+.TP
.B Mod1\-j
Focus next window.
.TP
@@ -101,7 +125,7 @@ Focus previous window.
.B Mod1\-i
Increase number of windows in master area.
.TP
-.B Mod1\-d
+.B Mod1\-Shift\-i
Decrease number of windows in master area.
.TP
.B Mod1\-l
@@ -110,7 +134,31 @@ Increase master area size.
.B Mod1\-h
Decrease master area size.
.TP
-.B Mod1\-Return
+.B Mod1-z
+Increases gaps.
+.TP
+.B Mod1-Shift-z
+Decreases gaps.
+.TP
+.B Mod1-x
+Increases outer gaps.
+.TP
+.B Mod1-Shift-x
+Decreases outer gaps.
+.TP
+.B Mod1-s
+Increases inner gaps.
+.TP
+.B Mod1-Shift-s
+Decreases inner gaps.
+.TP
+.B Super-0
+Toggles gaps.
+.TP
+.B Super-Shift-0
+Reset gaps to default size.
+.TP
+.B Mod1-w
Zooms/cycles focused window to/from master area (tiled layouts only).
.TP
.B Mod1\-Shift\-c