UP | HOME

Dwm Wm

Table of Contents

常用默认快捷键

Alt + shift + Enter 打开新窗口
Alt + shift + C 关闭当前窗口
Alt + D 窗口横向排列
Alt + I 窗口竖向排列
Alt + I 窗口竖向排列
Alt + num 切换标签页
Alt + shift + num 移动窗口至某标签页
Alt + T 平铺模式(tiling)
Alt + M 单窗口模式
Alt + F 浮动模式(float)
Alt + F 浮动模式(float)
Alt + J 在窗口间切换
Alt + K 在窗口间切换
Alt + H 改变窗口的长度/比例
Alt + L 改变窗口的长度/比例
Alt + Space 窗口模式切换
Alt + shift + Space 窗口模式切换
Mod + < 移动焦点至左边屏幕
Mod + > 移动焦点至右边屏幕
Mod + shift + < 移动窗口至左边屏幕
Mod + shift + > 移动窗口至右边屏幕

电脑键盘查看

xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

我的快捷键 ALT –> SUPER

#修改config.def.h
#define MODKEY Mod1Mask --> #define MODKEY Mod4Mask

我的快捷键

{ MODKEY|ControlMask,           XK_w,			tabmode,        { -1 } },
{ MODKEY,						XK_a,			togglegaps,	{0} },
{ MODKEY|ShiftMask,				XK_a,			defaultgaps,	{0} },
{ MODKEY,                       XK_p,			spawn,          {.v = dmenucmd } },
{ MODKEY|ShiftMask,             XK_Return,		spawn,          {.v = termcmd } },
{ MODKEY,                       XK_grave,		togglescratch,  {.v = scratchpadcmd } },
{ MODKEY,                       XK_b,			togglebar,      {0} },
{ MODKEY|ShiftMask,             XK_b,			hideborder,     {0} },
{ MODKEY,                       XK_j,			focusstack,     {.i = +1 } },
{ MODKEY,                       XK_k,			focusstack,     {.i = -1 } },
{ MODKEY|ShiftMask,             XK_j,			pushdown,       {0} },
{ MODKEY|ShiftMask,             XK_k,			pushup,         {0} },
{ MODKEY,						XK_Return,		zoom,           {0} },

{ MODKEY,						XK_z,			incrgaps,   {.i = +3 } },
{ MODKEY,						XK_x,			incrgaps,   {.i = -3 } },

{ MODKEY,                       XK_o,			incnmaster,     {.i = -1 } },
{ MODKEY|ShiftMask,				XK_o,			incnmaster,     {.i = -1 } },

{ MODKEY,                       XK_h,			setmfact,       {.f = -0.05} },
{ MODKEY,                       XK_l,			setmfact,       {.f = +0.05} },
{ MODKEY|ShiftMask,				XK_l,			shiftviewclients,     {.i = +1 } },
{ MODKEY|ShiftMask,				XK_h,			shiftviewclients,     {.i = -1 } },
{ MODKEY,                       XK_Tab,			view,           {0} },
{ MODKEY|ShiftMask,             XK_c,			killclient,     {0} },
{ MODKEY,						XK_s,			togglesticky,	{0} },
{ MODKEY,						XK_g,			shiftview,	{ .i = -1 } },
{ MODKEY|ShiftMask,				XK_g,			shifttag,	{ .i = -1 } },
{ MODKEY,						XK_semicolon,	shiftview,	{ .i = 1 } },
{ MODKEY|ShiftMask,				XK_semicolon,	shifttag,	{ .i = 1 } },
//layout
{ MODKEY,						XK_t,			setlayout,  {.v = &layouts[0]} }, /* tile */
{ MODKEY|ShiftMask,				XK_t,			setlayout,  {.v = &layouts[1]} }, /* bstack */
{ MODKEY,						XK_y,			setlayout,  {.v = &layouts[2]} }, /* spiral */
{ MODKEY|ShiftMask,				XK_y,			setlayout,  {.v = &layouts[3]} }, /* dwindle */
{ MODKEY,						XK_u,			setlayout,  {.v = &layouts[4]} }, /* deck */
{ MODKEY|ShiftMask,				XK_u,			setlayout,  {.v = &layouts[5]} }, /* monocle */
{ MODKEY,						XK_i,			setlayout,  {.v = &layouts[6]} }, /* centeredmaster */
{ MODKEY|ShiftMask,				XK_i,			setlayout,  {.v = &layouts[7]} }, /* centeredfloatingmaster */

{ MODKEY,                       XK_space,		zoom,      {0} },
{ MODKEY|ShiftMask,             XK_space,		togglefloating, {0} },

{ MODKEY|ShiftMask,				XK_f,			setlayout,  {.v = &layouts[8]} },
{ MODKEY,                       XK_f,			togglefullscreen, {0} },
{ MODKEY|ControlMask,           XK_comma,		cyclelayout,    {.i = -1 } },
{ MODKEY|ControlMask,           XK_period,		cyclelayout,    {.i = +1 } },
{ MODKEY,                       XK_0,			view,           {.ui = ~0 } },
{ MODKEY|ShiftMask,             XK_0,			tag,            {.ui = ~0 } },
{ MODKEY,                       XK_comma,		focusmon,       {.i = -1 } },
{ MODKEY,                       XK_period,		focusmon,       {.i = +1 } },
{ MODKEY|ShiftMask,             XK_comma,		tagmon,         {.i = -1 } },
{ MODKEY|ShiftMask,             XK_period,		tagmon,         {.i = +1 } },


{ MODKEY,						XK_r,			spawn,		   {.v = roficmd } },
{ MODKEY|ControlMask,           XK_Right,		spawn,          {.v = volup} },
{ MODKEY,						XK_Right,		focusmon,   {.i = +1 } },
{ MODKEY|ShiftMask,				XK_Right,		tagmon,     {.i = +1 } },

{ MODKEY|ControlMask,           XK_Left,		spawn,          {.v = voldown} },   //Shift+Alt+左/右方向键,调整音量大小
{ MODKEY,						XK_Left,		focusmon,   {.i = -1 } },
{ MODKEY|ShiftMask,				XK_Left,		tagmon,     {.i = -1 } },

{ MODKEY|ControlMask,           XK_m,			spawn,          {.v = mute} },   //Shift+Alt+m,开启/关闭静音
{ MODKEY|ControlMask,           XK_l,			spawn,		     {.v = slock} },
{ MODKEY|ControlMask,           XK_Up,			spawn,          {.v = lightup} },
{ MODKEY,                       XK_Page_Up,		shiftview,  { .i = -1 } },
{ MODKEY|ShiftMask,             XK_Page_Up,		shifttag,   { .i = -1 } },
{ MODKEY|ControlMask,           XK_Down,		spawn,          {.v = lightdown} },   //Shift+Alt+上/下方向键,调整屏幕亮度
{ MODKEY,                       XK_Page_Down,   shiftview,  { .i = +1 } },
{ MODKEY|ShiftMask,             XK_Page_Down,   shifttag,   { .i = +1 } },

{ MODKEY,						XK_apostrophe,	togglescratch,	{.ui = 1} },
{ MODKEY|ShiftMask,				XK_apostrophe,	togglesmartgaps,	{0} },

{ MODKEY|ControlMask,           XK_e,			hidewin,        {0} },
{ MODKEY|ShiftMask,             XK_e,			restorewin,     {0} },

{ MODKEY|Mod4Mask,              XK_6,			incrihgaps,     {.i = +1 } },
{ MODKEY|Mod4Mask|ShiftMask,    XK_6,      		incrihgaps,     {.i = -1 } },
{ MODKEY|Mod4Mask,              XK_7,      		incrivgaps,     {.i = +1 } },
{ MODKEY|Mod4Mask|ShiftMask,    XK_7,      		incrivgaps,     {.i = -1 } },
{ MODKEY|Mod4Mask,              XK_8,      		incrohgaps,     {.i = +1 } },
{ MODKEY|Mod4Mask|ShiftMask,    XK_8,      		incrohgaps,     {.i = -1 } },
{ MODKEY|Mod4Mask,              XK_9,      		incrovgaps,     {.i = +1 } },
{ MODKEY|Mod4Mask|ShiftMask,    XK_9,      		incrovgaps,     {.i = -1 } },
{ MODKEY|Mod4Mask,              XK_0,      		togglegaps,     {0} },
{ MODKEY|Mod4Mask|ShiftMask,    XK_0,      		defaultgaps,    {0} },
{MODKEY|ControlMask,            XK_q,      		quit,           {0} },

Author: josephzeng

Lastmod: <2022-05-15 Sun>

License: CC BY-NC-ND 4.0

First created: 2022-05-15 Sun 00:00
Last updated: 2022-05-15 Sun 21:02
Power by Emacs 27.1 (Org mode 9.4)
© 2017 – 2021 by josephzeng