diff --git a/config.h b/config.h index 061ad66..bbe3133 100644 --- a/config.h +++ b/config.h @@ -45,7 +45,7 @@ static const Layout layouts[] = { }; /* key definitions */ -#define MODKEY Mod1Mask +#define MODKEY Mod4Mask #define TAGKEYS(KEY,TAG) \ { MODKEY, KEY, view, {.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|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, 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_Down, focusstack, {.i = +1 } }, + { MODKEY, XK_Up, focusstack, {.i = -1 } }, + { MODKEY, XK_u, incnmaster, {.i = +1 } }, + { MODKEY, XK_l, incnmaster, {.i = -1 } }, + { MODKEY, XK_Left, setmfact, {.f = -0.05} }, + { MODKEY, XK_Right, setmfact, {.f = +0.05} }, { MODKEY, XK_Return, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY|ShiftMask, XK_c, killclient, {0} }, diff --git a/dwm.1 b/dwm.1 index ddc8321..42fa743 100644 --- a/dwm.1 +++ b/dwm.1 @@ -49,108 +49,108 @@ label toggles between tiled and floating layout. .B Button3 click on a tag label adds/removes all windows with that tag to/from the view. .TP -.B Mod1\-Button1 +.B Mod4\-Button1 click on a tag label applies that tag to the focused window. .TP -.B Mod1\-Button3 +.B Mod4\-Button3 click on a tag label adds/removes that tag to/from the focused window. .SS Keyboard commands .TP -.B Mod1\-Shift\-Return +.B Mod4\-Shift\-Return Start .BR st(1). .TP -.B Mod1\-p +.B Mod4\-p Spawn .BR dmenu(1) for launching other programs. .TP -.B Mod1\-, +.B Mod4\-, Focus previous screen, if any. .TP -.B Mod1\-. +.B Mod4\-. Focus next screen, if any. .TP -.B Mod1\-Shift\-, +.B Mod4\-Shift\-, Send focused window to previous screen, if any. .TP -.B Mod1\-Shift\-. +.B Mod4\-Shift\-. Send focused window to next screen, if any. .TP -.B Mod1\-b +.B Mod4\-b Toggles bar on and off. .TP -.B Mod1\-t +.B Mod4\-t Sets tiled layout. .TP -.B Mod1\-f +.B Mod4\-f Sets floating layout. .TP -.B Mod1\-m +.B Mod4\-m Sets monocle layout. .TP -.B Mod1\-space +.B Mod4\-space Toggles between current and previous layout. .TP -.B Mod1\-j +.B Mod4\-Down Focus next window. .TP -.B Mod1\-k +.B Mod4\-Up Focus previous window. .TP -.B Mod1\-i +.B Mod4\-u Increase number of windows in master area. .TP -.B Mod1\-d +.B Mod4\-l Decrease number of windows in master area. .TP -.B Mod1\-l +.B Mod4\-Left Increase master area size. .TP -.B Mod1\-h +.B Mod4\-Right Decrease master area size. .TP -.B Mod1\-Return +.B Mod4\-Return Zooms/cycles focused window to/from master area (tiled layouts only). .TP -.B Mod1\-Shift\-c +.B Mod4\-Shift\-c Close focused window. .TP -.B Mod1\-Shift\-space +.B Mod4\-Shift\-space Toggle focused window between tiled and floating state. .TP -.B Mod1\-Tab +.B Mod4\-Tab Toggles to the previously selected tags. .TP -.B Mod1\-Shift\-[1..n] +.B Mod4\-Shift\-[1..n] Apply nth tag to focused window. .TP -.B Mod1\-Shift\-0 +.B Mod4\-Shift\-0 Apply all tags to focused window. .TP -.B Mod1\-Control\-Shift\-[1..n] +.B Mod4\-Control\-Shift\-[1..n] Add/remove nth tag to/from focused window. .TP -.B Mod1\-[1..n] +.B Mod4\-[1..n] View all windows with nth tag. .TP -.B Mod1\-0 +.B Mod4\-0 View all windows with any tag. .TP -.B Mod1\-Control\-[1..n] +.B Mod4\-Control\-[1..n] Add/remove all windows with nth tag to/from the view. .TP -.B Mod1\-Shift\-q +.B Mod4\-Shift\-q Quit dwm. .SS Mouse commands .TP -.B Mod1\-Button1 +.B Mod4\-Button1 Move focused window while dragging. Tiled windows will be toggled to the floating state. .TP -.B Mod1\-Button2 +.B Mod4\-Button2 Toggles focused window between floating and tiled state. .TP -.B Mod1\-Button3 +.B Mod4\-Button3 Resize focused window while dragging. Tiled windows will be toggled to the floating state. .SH CUSTOMIZATION dwm is customized by creating a custom config.h and (re)compiling the source