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|ShiftMask, XK_equal, spawn, SHCMD("pamixer --allow-boost -i 15; kill -44 $(pidof dwmblocks)") },
{ 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|ShiftMask, XK_Tab, spawn, SHCMD("") }, */
@ -158,32 +158,32 @@ static Key keys[] = {
{ MODKEY, XK_a, togglegaps, {0} },
{ MODKEY|ShiftMask, XK_a, defaultgaps, {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|ShiftMask, XK_d, spawn, SHCMD("st -e sudo su") },
/* { MODKEY, XK_d, spawn, SHCMD("") } }, */
{ MODKEY, XK_f, togglefullscr, {0} },
{ MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[8]} },
{ 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} },
/* J and K are automatically bound above in STACKEYS */
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ 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|ShiftMask, XK_apostrophe, spawn, SHCMD("") }, */
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0} },
{ MODKEY, XK_z, incrgaps, {.i = +1 } },
{ MODKEY|ShiftMask, XK_z, incrgaps, {.i = -1 } },
/* { MODKEY, XK_x, spawn, SHCMD("") }, */
{ MODKEY, XK_z, incrgaps, {.i = +3 } },
/* { MODKEY|ShiftMask, XK_z, spawn, SHCMD("") }, */
{ MODKEY, XK_x, incrgaps, {.i = -3 } },
/* { MODKEY|ShiftMask, XK_x, spawn, SHCMD("") }, */
/* { MODKEY, XK_c, spawn, SHCMD("") }, */
/* { MODKEY|ShiftMask, XK_c, spawn, SHCMD("") }, */
/* { MODKEY, 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, XK_n, spawn, SHCMD("st -e nvim -c VimwikiIndex") },
{ 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, 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_F1, spawn, SHCMD("groff -mom /usr/local/share/dwm/larbs.mom -Tpdf | zathura -") },
@ -282,7 +284,7 @@ static Button buttons[] = {
{ ClkStatusText, 0, Button4, sigdwmblocks, {.i = 4} },
{ ClkStatusText, 0, Button5, sigdwmblocks, {.i = 5} },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, defaultgaps, {0} },
{ ClkClientWin, MODKEY, Button2, defaultgaps, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
{ ClkClientWin, MODKEY, Button4, incrgaps, {.i = +1} },
{ ClkClientWin, MODKEY, Button5, incrgaps, {.i = -1} },

View file

@ -69,7 +69,7 @@ This setting can be changed if you don't like it by deleting or commenting out t
.PP
To the left, you'll see the numbers of your current workspace/tag(s).
On the right, you'll see various system status notifiers, the date, volume, even music and local weather if possible, etc.
Each module on the right of the status bar is a script located in \f(CW~/.local/bin/statusbar/\fP.
Each module on the right of the statusbar is a script located in \f(CW~/.local/bin/statusbar/\fP.
You can see what they do and modify them from there.
I'm sure you can figure it out.
You can also right click on the module to see what it does.
@ -105,7 +105,7 @@ To type capital letters, hold down the \f(CWShift\fP key\(emthat might sound lik
.ITEM
\f(CWMod+h/l\fP \(en Change width of master window
.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
\f(CWMod+a\fP \(en Toggle gaps
.ITEM
@ -115,7 +115,7 @@ To type capital letters, hold down the \f(CWShift\fP key\(emthat might sound lik
.ITEM
\f(CWMod+s\fP \(en Make/unmake a window "sticky" (follows you from tag to tag)
.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
.HEADING 2 "Window layouts"
.LI