I think that for the left-hand binds, it's best to

spread out binds and not use shift.

For right-handed people, most of which prefer right shift,
it is much easier to mod+shift with the right hand than left.
This commit is contained in:
Luke Smith 2020-05-03 16:04:33 -04:00
parent 6f00f18d91
commit 8cd6c7f0ea
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252
2 changed files with 16 additions and 14 deletions

View file

@ -124,7 +124,7 @@ static Key keys[] = {
{ MODKEY, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 5; kill -44 $(pidof dwmblocks)") }, { MODKEY, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 5; kill -44 $(pidof dwmblocks)") },
{ MODKEY|ShiftMask, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 15; kill -44 $(pidof dwmblocks)") }, { MODKEY|ShiftMask, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 15; kill -44 $(pidof dwmblocks)") },
{ MODKEY, XK_BackSpace, spawn, SHCMD("sysact") }, { MODKEY, XK_BackSpace, spawn, SHCMD("sysact") },
/* { MODKEY|ShiftMask, XK_BackSpace, spawn, SHCMD("") }, */ { MODKEY|ShiftMask, XK_BackSpace, spawn, SHCMD("sysact") },
{ MODKEY, XK_Tab, view, {0} }, { MODKEY, XK_Tab, view, {0} },
/* { MODKEY|ShiftMask, XK_Tab, spawn, SHCMD("") }, */ /* { MODKEY|ShiftMask, XK_Tab, spawn, SHCMD("") }, */
@ -158,32 +158,32 @@ static Key keys[] = {
{ MODKEY, XK_a, togglegaps, {0} }, { MODKEY, XK_a, togglegaps, {0} },
{ MODKEY|ShiftMask, XK_a, defaultgaps, {0} }, { MODKEY|ShiftMask, XK_a, defaultgaps, {0} },
{ MODKEY, XK_s, togglesticky, {0} }, { MODKEY, XK_s, togglesticky, {0} },
{ MODKEY|ShiftMask, XK_s, togglebar, {0} }, /* { MODKEY|ShiftMask, XK_s, spawn, SHCMD("") }, */
{ MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY, XK_d, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_d, spawn, SHCMD("st -e sudo su") }, /* { MODKEY, XK_d, spawn, SHCMD("") } }, */
{ MODKEY, XK_f, togglefullscr, {0} }, { MODKEY, XK_f, togglefullscr, {0} },
{ MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[8]} }, { MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[8]} },
{ MODKEY, XK_g, shiftview, { .i = -1 } }, { MODKEY, XK_g, shiftview, { .i = -1 } },
/* { MODKEY|ShiftMask, XK_g, spawn, SHCMD("") }, */ /* { MODKEY|ShiftMask, XK_g, shifttag, { .i = -1 } }, */
{ MODKEY, XK_h, setmfact, {.f = -0.05} }, { MODKEY, XK_h, setmfact, {.f = -0.05} },
/* J and K are automatically bound above in STACKEYS */ /* J and K are automatically bound above in STACKEYS */
{ MODKEY, XK_l, setmfact, {.f = +0.05} }, { MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_semicolon, shiftview, { .i = 1 } }, { MODKEY, XK_semicolon, shiftview, { .i = 1 } },
/* { MODKEY|ShiftMask, XK_semicolon, shiftview, SHCMD("") }, */ /* { MODKEY|ShiftMask, XK_semicolon, shifttag, { .i = 1 } }, */
{ MODKEY, XK_apostrophe, togglescratch, {.ui = 1} }, { MODKEY, XK_apostrophe, togglescratch, {.ui = 1} },
/* { MODKEY|ShiftMask, XK_apostrophe, spawn, SHCMD("") }, */ /* { MODKEY|ShiftMask, XK_apostrophe, spawn, SHCMD("") }, */
{ MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0} }, { MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0} },
{ MODKEY, XK_z, incrgaps, {.i = +1 } }, { MODKEY, XK_z, incrgaps, {.i = +3 } },
{ MODKEY|ShiftMask, XK_z, incrgaps, {.i = -1 } }, /* { MODKEY|ShiftMask, XK_z, spawn, SHCMD("") }, */
/* { MODKEY, XK_x, spawn, SHCMD("") }, */ { MODKEY, XK_x, incrgaps, {.i = -3 } },
/* { MODKEY|ShiftMask, XK_x, spawn, SHCMD("") }, */ /* { MODKEY|ShiftMask, XK_x, spawn, SHCMD("") }, */
/* { MODKEY, XK_c, spawn, SHCMD("") }, */ /* { MODKEY, XK_c, spawn, SHCMD("") }, */
/* { MODKEY|ShiftMask, XK_c, spawn, SHCMD("") }, */ /* { MODKEY|ShiftMask, XK_c, spawn, SHCMD("") }, */
/* { MODKEY, XK_v, spawn, SHCMD("") }, */ /* { MODKEY, XK_v, spawn, SHCMD("") }, */
/* { MODKEY|ShiftMask, XK_v, spawn, SHCMD("") }, */ /* { MODKEY|ShiftMask, XK_v, spawn, SHCMD("") }, */
/* { MODKEY, XK_b, spawn, SHCMD("") }, */ { MODKEY, XK_b, togglebar, {0} },
/* { MODKEY|ShiftMask, XK_b, spawn, SHCMD("") }, */ /* { MODKEY|ShiftMask, XK_b, spawn, SHCMD("") }, */
{ MODKEY, XK_n, spawn, SHCMD("st -e nvim -c VimwikiIndex") }, { MODKEY, XK_n, spawn, SHCMD("st -e nvim -c VimwikiIndex") },
{ MODKEY|ShiftMask, XK_n, spawn, SHCMD("st -e newsboat; pkill -RTMIN+6 dwmblocks") }, { MODKEY|ShiftMask, XK_n, spawn, SHCMD("st -e newsboat; pkill -RTMIN+6 dwmblocks") },
@ -200,7 +200,9 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_Right, tagmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_Right, tagmon, {.i = +1 } },
{ MODKEY, XK_Page_Up, shiftview, { .i = -1 } }, { MODKEY, XK_Page_Up, shiftview, { .i = -1 } },
{ MODKEY, XK_Page_Down, shiftview, { .i = 1 } }, /* { MODKEY|ShiftMask, XK_Page_Up, shifttag, { .i = -1 } }, */
{ MODKEY, XK_Page_Down, shiftview, { .i = +1 } },
/* { MODKEY|ShiftMask, XK_Page_Down, shifttag, { .i = +1 } }, */
{ MODKEY, XK_Insert, spawn, SHCMD("notify-send \"📋 Clipboard contents:\" \"$(xclip -o -selection clipboard)\"") }, { MODKEY, XK_Insert, spawn, SHCMD("notify-send \"📋 Clipboard contents:\" \"$(xclip -o -selection clipboard)\"") },
{ MODKEY, XK_F1, spawn, SHCMD("groff -mom /usr/local/share/dwm/larbs.mom -Tpdf | zathura -") }, { MODKEY, XK_F1, spawn, SHCMD("groff -mom /usr/local/share/dwm/larbs.mom -Tpdf | zathura -") },

View file

@ -105,7 +105,7 @@ To type capital letters, hold down the \f(CWShift\fP key\(emthat might sound lik
.ITEM .ITEM
\f(CWMod+h/l\fP \(en Change width of master window \f(CWMod+h/l\fP \(en Change width of master window
.ITEM .ITEM
\f(CWMod+z/Z\fP \(en Increase/decrease gaps (may also hold \f(CWMod\fP and scroll mouse) \f(CWMod+z/x\fP \(en Increase/decrease gaps (may also hold \f(CWMod\fP and scroll mouse)
.ITEM .ITEM
\f(CWMod+a\fP \(en Toggle gaps \f(CWMod+a\fP \(en Toggle gaps
.ITEM .ITEM
@ -115,7 +115,7 @@ To type capital letters, hold down the \f(CWShift\fP key\(emthat might sound lik
.ITEM .ITEM
\f(CWMod+s\fP \(en Make/unmake a window "sticky" (follows you from tag to tag) \f(CWMod+s\fP \(en Make/unmake a window "sticky" (follows you from tag to tag)
.ITEM .ITEM
\f(CWMod+S\fP \(en Toggle status bar (may also middle click on desktop) \f(CWMod+b\fP \(en Toggle statusbar (may also middle click on desktop)
.LIST OFF .LIST OFF
.HEADING 2 "Window layouts" .HEADING 2 "Window layouts"
.LI .LI