Mercurial > hg > index.fcgi > dwm > dwm-3.6.1-11pba
changeset 10:ed4f1bf80e57 tip
tweak key mapping
author | paulo@thepaulopc |
---|---|
date | Tue, 05 Jul 2011 01:11:23 -0700 |
parents | bc03b37b37ba |
children | |
files | config.h |
diffstat | 1 files changed, 33 insertions(+), 33 deletions(-) [+] |
line diff
1.1 --- a/config.h Wed Jun 15 23:27:32 2011 -0700 1.2 +++ b/config.h Tue Jul 05 01:11:23 2011 -0700 1.3 @@ -92,45 +92,45 @@ 1.4 { ShiftMask, XK_m, resizemaster, { .i = -15 } }, \ 1.5 { 0, XK_d, incnmaster, { .i = 1 } }, \ 1.6 { ShiftMask, XK_d, incnmaster, { .i = -1 } }, \ 1.7 - { 0, XK_v, next_view, { .i = 1 } }, \ 1.8 - { ShiftMask, XK_v, next_view, { .i = -1 } }, \ 1.9 + { 0, XK_l, next_view, { .i = 1 } }, \ 1.10 + { 0, XK_h, next_view, { .i = -1 } }, \ 1.11 { 0, XK_BackSpace, last_view, { 0 } }, \ 1.12 - { 0, XK_l, setlayout, { .i = -1 } }, \ 1.13 - { ShiftMask, XK_l, setlayout, { .i = -2 } }, \ 1.14 + { 0, XK_semicolon, setlayout, { .i = -1 } }, \ 1.15 + { ShiftMask, XK_semicolon, setlayout, { .i = -2 } }, \ 1.16 }; 1.17 1.18 #define COMMANDS \ 1.19 static Command commands[] = { \ 1.20 /* modifier (4 keys) keysyms (4 keys) function argument */ \ 1.21 - { {0, 0, 0, 0}, {XK_grave, XK_v, 0, 0}, view, { .i = -1 } }, \ 1.22 - { {0, 0, 0, 0}, {XK_1, XK_v, 0, 0}, view, { .i = 0 } }, \ 1.23 - { {0, 0, 0, 0}, {XK_2, XK_v, 0, 0}, view, { .i = 1 } }, \ 1.24 - { {0, 0, 0, 0}, {XK_3, XK_v, 0, 0}, view, { .i = 2 } }, \ 1.25 - { {0, 0, 0, 0}, {XK_4, XK_v, 0, 0}, view, { .i = 3 } }, \ 1.26 - { {0, 0, 0, 0}, {XK_5, XK_v, 0, 0}, view, { .i = 4 } }, \ 1.27 - { {0, 0, 0, 0}, {XK_6, XK_v, 0, 0}, view, { .i = 5 } }, \ 1.28 - { {0, 0, 0, 0}, {XK_7, XK_v, 0, 0}, view, { .i = 6 } }, \ 1.29 - { {0, 0, 0, 0}, {XK_8, XK_v, 0, 0}, view, { .i = 7 } }, \ 1.30 - { {0, 0, 0, 0}, {XK_9, XK_v, 0, 0}, view, { .i = 8 } }, \ 1.31 - { {0, 0, 0, 0}, {XK_0, XK_v, 0, 0}, view, { .i = 9 } }, \ 1.32 - { {0, ShiftMask, 0, 0}, {XK_grave, XK_v, 0, 0}, toggleversatile, { 0 } }, \ 1.33 - { {0, ShiftMask, 0, 0}, {XK_1, XK_v, 0, 0}, toggleview, { .i = 0 } }, \ 1.34 - { {0, ShiftMask, 0, 0}, {XK_2, XK_v, 0, 0}, toggleview, { .i = 1 } }, \ 1.35 - { {0, ShiftMask, 0, 0}, {XK_3, XK_v, 0, 0}, toggleview, { .i = 2 } }, \ 1.36 - { {0, ShiftMask, 0, 0}, {XK_4, XK_v, 0, 0}, toggleview, { .i = 3 } }, \ 1.37 - { {0, ShiftMask, 0, 0}, {XK_5, XK_v, 0, 0}, toggleview, { .i = 4 } }, \ 1.38 - { {0, ShiftMask, 0, 0}, {XK_6, XK_v, 0, 0}, toggleview, { .i = 5 } }, \ 1.39 - { {0, ShiftMask, 0, 0}, {XK_7, XK_v, 0, 0}, toggleview, { .i = 6 } }, \ 1.40 - { {0, ShiftMask, 0, 0}, {XK_8, XK_v, 0, 0}, toggleview, { .i = 7 } }, \ 1.41 - { {0, ShiftMask, 0, 0}, {XK_9, XK_v, 0, 0}, toggleview, { .i = 8 } }, \ 1.42 - { {0, ShiftMask, 0, 0}, {XK_0, XK_v, 0, 0}, toggleview, { .i = 9 } }, \ 1.43 - { {0, 0, 0, 0}, {XK_1, XK_l, 0, 0}, setlayout, { .i = 0 } }, \ 1.44 - { {0, 0, 0, 0}, {XK_2, XK_l, 0, 0}, setlayout, { .i = 1 } }, \ 1.45 - { {0, 0, 0, 0}, {XK_3, XK_l, 0, 0}, setlayout, { .i = 2 } }, \ 1.46 - { {0, 0, 0, 0}, {XK_4, XK_l, 0, 0}, setlayout, { .i = 3 } }, \ 1.47 - { {0, 0, 0, 0}, {XK_5, XK_l, 0, 0}, setlayout, { .i = 4 } }, \ 1.48 - { {0, 0, 0, 0}, {XK_6, XK_l, 0, 0}, setlayout, { .i = 5 } }, \ 1.49 - { {0, 0, 0, 0}, {XK_7, XK_l, 0, 0}, setlayout, { .i = 6 } }, \ 1.50 + { {0, 0, 0, 0}, {XK_grave, XK_g, 0, 0}, view, { .i = -1 } }, \ 1.51 + { {0, 0, 0, 0}, {XK_1, XK_g, 0, 0}, view, { .i = 0 } }, \ 1.52 + { {0, 0, 0, 0}, {XK_2, XK_g, 0, 0}, view, { .i = 1 } }, \ 1.53 + { {0, 0, 0, 0}, {XK_3, XK_g, 0, 0}, view, { .i = 2 } }, \ 1.54 + { {0, 0, 0, 0}, {XK_4, XK_g, 0, 0}, view, { .i = 3 } }, \ 1.55 + { {0, 0, 0, 0}, {XK_5, XK_g, 0, 0}, view, { .i = 4 } }, \ 1.56 + { {0, 0, 0, 0}, {XK_6, XK_g, 0, 0}, view, { .i = 5 } }, \ 1.57 + { {0, 0, 0, 0}, {XK_7, XK_g, 0, 0}, view, { .i = 6 } }, \ 1.58 + { {0, 0, 0, 0}, {XK_8, XK_g, 0, 0}, view, { .i = 7 } }, \ 1.59 + { {0, 0, 0, 0}, {XK_9, XK_g, 0, 0}, view, { .i = 8 } }, \ 1.60 + { {0, 0, 0, 0}, {XK_0, XK_g, 0, 0}, view, { .i = 9 } }, \ 1.61 + { {0, ShiftMask, 0, 0}, {XK_grave, XK_g, 0, 0}, toggleversatile, { 0 } }, \ 1.62 + { {0, ShiftMask, 0, 0}, {XK_1, XK_g, 0, 0}, toggleview, { .i = 0 } }, \ 1.63 + { {0, ShiftMask, 0, 0}, {XK_2, XK_g, 0, 0}, toggleview, { .i = 1 } }, \ 1.64 + { {0, ShiftMask, 0, 0}, {XK_3, XK_g, 0, 0}, toggleview, { .i = 2 } }, \ 1.65 + { {0, ShiftMask, 0, 0}, {XK_4, XK_g, 0, 0}, toggleview, { .i = 3 } }, \ 1.66 + { {0, ShiftMask, 0, 0}, {XK_5, XK_g, 0, 0}, toggleview, { .i = 4 } }, \ 1.67 + { {0, ShiftMask, 0, 0}, {XK_6, XK_g, 0, 0}, toggleview, { .i = 5 } }, \ 1.68 + { {0, ShiftMask, 0, 0}, {XK_7, XK_g, 0, 0}, toggleview, { .i = 6 } }, \ 1.69 + { {0, ShiftMask, 0, 0}, {XK_8, XK_g, 0, 0}, toggleview, { .i = 7 } }, \ 1.70 + { {0, ShiftMask, 0, 0}, {XK_9, XK_g, 0, 0}, toggleview, { .i = 8 } }, \ 1.71 + { {0, ShiftMask, 0, 0}, {XK_0, XK_g, 0, 0}, toggleview, { .i = 9 } }, \ 1.72 + { {0, 0, 0, 0}, {XK_1, XK_semicolon, 0, 0}, setlayout, { .i = 0 } }, \ 1.73 + { {0, 0, 0, 0}, {XK_2, XK_semicolon, 0, 0}, setlayout, { .i = 1 } }, \ 1.74 + { {0, 0, 0, 0}, {XK_3, XK_semicolon, 0, 0}, setlayout, { .i = 2 } }, \ 1.75 + { {0, 0, 0, 0}, {XK_4, XK_semicolon, 0, 0}, setlayout, { .i = 3 } }, \ 1.76 + { {0, 0, 0, 0}, {XK_5, XK_semicolon, 0, 0}, setlayout, { .i = 4 } }, \ 1.77 + { {0, 0, 0, 0}, {XK_6, XK_semicolon, 0, 0}, setlayout, { .i = 5 } }, \ 1.78 + { {0, 0, 0, 0}, {XK_7, XK_semicolon, 0, 0}, setlayout, { .i = 6 } }, \ 1.79 { {0, 0, 0, 0}, {XK_grave, XK_t, 0, 0}, tag, { .i = -1 } }, \ 1.80 { {0, 0, 0, 0}, {XK_1, XK_t, 0, 0}, tag, { .i = 0 } }, \ 1.81 { {0, 0, 0, 0}, {XK_2, XK_t, 0, 0}, tag, { .i = 1 } }, \