configure colemak bindings and mods
parent
2a329067ad
commit
66f9db6907
14
config.h
14
config.h
|
|
@ -45,7 +45,7 @@ static const Layout layouts[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* key definitions */
|
/* key definitions */
|
||||||
#define MODKEY Mod1Mask
|
#define MODKEY Mod4Mask
|
||||||
#define TAGKEYS(KEY,TAG) \
|
#define TAGKEYS(KEY,TAG) \
|
||||||
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
|
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
|
||||||
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
|
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
|
||||||
|
|
@ -64,12 +64,12 @@ static const Key keys[] = {
|
||||||
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
||||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
||||||
{ MODKEY, XK_b, togglebar, {0} },
|
{ MODKEY, XK_b, togglebar, {0} },
|
||||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
{ MODKEY, XK_Down, focusstack, {.i = +1 } },
|
||||||
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
{ MODKEY, XK_Up, focusstack, {.i = -1 } },
|
||||||
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
|
{ MODKEY, XK_u, incnmaster, {.i = +1 } },
|
||||||
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
|
{ MODKEY, XK_l, incnmaster, {.i = -1 } },
|
||||||
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
|
{ MODKEY, XK_Left, setmfact, {.f = -0.05} },
|
||||||
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
|
{ MODKEY, XK_Right, setmfact, {.f = +0.05} },
|
||||||
{ MODKEY, XK_Return, zoom, {0} },
|
{ MODKEY, XK_Return, zoom, {0} },
|
||||||
{ MODKEY, XK_Tab, view, {0} },
|
{ MODKEY, XK_Tab, view, {0} },
|
||||||
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
|
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
|
||||||
|
|
|
||||||
66
dwm.1
66
dwm.1
|
|
@ -49,108 +49,108 @@ label toggles between tiled and floating layout.
|
||||||
.B Button3
|
.B Button3
|
||||||
click on a tag label adds/removes all windows with that tag to/from the view.
|
click on a tag label adds/removes all windows with that tag to/from the view.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Button1
|
.B Mod4\-Button1
|
||||||
click on a tag label applies that tag to the focused window.
|
click on a tag label applies that tag to the focused window.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Button3
|
.B Mod4\-Button3
|
||||||
click on a tag label adds/removes that tag to/from the focused window.
|
click on a tag label adds/removes that tag to/from the focused window.
|
||||||
.SS Keyboard commands
|
.SS Keyboard commands
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Shift\-Return
|
.B Mod4\-Shift\-Return
|
||||||
Start
|
Start
|
||||||
.BR st(1).
|
.BR st(1).
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-p
|
.B Mod4\-p
|
||||||
Spawn
|
Spawn
|
||||||
.BR dmenu(1)
|
.BR dmenu(1)
|
||||||
for launching other programs.
|
for launching other programs.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-,
|
.B Mod4\-,
|
||||||
Focus previous screen, if any.
|
Focus previous screen, if any.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-.
|
.B Mod4\-.
|
||||||
Focus next screen, if any.
|
Focus next screen, if any.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Shift\-,
|
.B Mod4\-Shift\-,
|
||||||
Send focused window to previous screen, if any.
|
Send focused window to previous screen, if any.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Shift\-.
|
.B Mod4\-Shift\-.
|
||||||
Send focused window to next screen, if any.
|
Send focused window to next screen, if any.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-b
|
.B Mod4\-b
|
||||||
Toggles bar on and off.
|
Toggles bar on and off.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-t
|
.B Mod4\-t
|
||||||
Sets tiled layout.
|
Sets tiled layout.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-f
|
.B Mod4\-f
|
||||||
Sets floating layout.
|
Sets floating layout.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-m
|
.B Mod4\-m
|
||||||
Sets monocle layout.
|
Sets monocle layout.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-space
|
.B Mod4\-space
|
||||||
Toggles between current and previous layout.
|
Toggles between current and previous layout.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-j
|
.B Mod4\-Down
|
||||||
Focus next window.
|
Focus next window.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-k
|
.B Mod4\-Up
|
||||||
Focus previous window.
|
Focus previous window.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-i
|
.B Mod4\-u
|
||||||
Increase number of windows in master area.
|
Increase number of windows in master area.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-d
|
.B Mod4\-l
|
||||||
Decrease number of windows in master area.
|
Decrease number of windows in master area.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-l
|
.B Mod4\-Left
|
||||||
Increase master area size.
|
Increase master area size.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-h
|
.B Mod4\-Right
|
||||||
Decrease master area size.
|
Decrease master area size.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Return
|
.B Mod4\-Return
|
||||||
Zooms/cycles focused window to/from master area (tiled layouts only).
|
Zooms/cycles focused window to/from master area (tiled layouts only).
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Shift\-c
|
.B Mod4\-Shift\-c
|
||||||
Close focused window.
|
Close focused window.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Shift\-space
|
.B Mod4\-Shift\-space
|
||||||
Toggle focused window between tiled and floating state.
|
Toggle focused window between tiled and floating state.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Tab
|
.B Mod4\-Tab
|
||||||
Toggles to the previously selected tags.
|
Toggles to the previously selected tags.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Shift\-[1..n]
|
.B Mod4\-Shift\-[1..n]
|
||||||
Apply nth tag to focused window.
|
Apply nth tag to focused window.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Shift\-0
|
.B Mod4\-Shift\-0
|
||||||
Apply all tags to focused window.
|
Apply all tags to focused window.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Control\-Shift\-[1..n]
|
.B Mod4\-Control\-Shift\-[1..n]
|
||||||
Add/remove nth tag to/from focused window.
|
Add/remove nth tag to/from focused window.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-[1..n]
|
.B Mod4\-[1..n]
|
||||||
View all windows with nth tag.
|
View all windows with nth tag.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-0
|
.B Mod4\-0
|
||||||
View all windows with any tag.
|
View all windows with any tag.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Control\-[1..n]
|
.B Mod4\-Control\-[1..n]
|
||||||
Add/remove all windows with nth tag to/from the view.
|
Add/remove all windows with nth tag to/from the view.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Shift\-q
|
.B Mod4\-Shift\-q
|
||||||
Quit dwm.
|
Quit dwm.
|
||||||
.SS Mouse commands
|
.SS Mouse commands
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Button1
|
.B Mod4\-Button1
|
||||||
Move focused window while dragging. Tiled windows will be toggled to the floating state.
|
Move focused window while dragging. Tiled windows will be toggled to the floating state.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Button2
|
.B Mod4\-Button2
|
||||||
Toggles focused window between floating and tiled state.
|
Toggles focused window between floating and tiled state.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Button3
|
.B Mod4\-Button3
|
||||||
Resize focused window while dragging. Tiled windows will be toggled to the floating state.
|
Resize focused window while dragging. Tiled windows will be toggled to the floating state.
|
||||||
.SH CUSTOMIZATION
|
.SH CUSTOMIZATION
|
||||||
dwm is customized by creating a custom config.h and (re)compiling the source
|
dwm is customized by creating a custom config.h and (re)compiling the source
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue