diff options
author | todd <todd> | 2007-11-13 23:08:49 +0000 |
---|---|---|
committer | todd <todd> | 2007-11-13 23:08:49 +0000 |
commit | 576d299095ac1a0aec7fef700d94f6c1a53c2bcb (patch) | |
tree | 87db35baa2c14d5c49a3f73125b18b49bbcc518e /conf.c | |
parent | dc39e11ff9da56fe22f9c29eb90be8508e50d0be (diff) | |
download | cwm-576d299095ac1a0aec7fef700d94f6c1a53c2bcb.tar.gz cwm-576d299095ac1a0aec7fef700d94f6c1a53c2bcb.tar.xz cwm-576d299095ac1a0aec7fef700d94f6c1a53c2bcb.zip |
enable pointer movement in cwm via C-<arrowkeys>
looked over by oga@
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/conf.c b/conf.c index 0bec9aa..381ded8 100644 --- a/conf.c +++ b/conf.c @@ -282,6 +282,26 @@ conf_setup(struct conf *c) conf_bindkey(c, kbfunc_client_resize, XK_H, ControlMask|Mod1Mask, KBFLAG_NEEDCLIENT, (void *)(CWM_LEFT|CWM_BIGMOVE)); + conf_bindkey(c, kbfunc_ptrmove, + XK_Up, ControlMask, 0, (void *)CWM_UP); + conf_bindkey(c, kbfunc_ptrmove, + XK_Down, ControlMask, 0, (void *)CWM_DOWN); + conf_bindkey(c, kbfunc_ptrmove, + XK_Right, ControlMask, 0, (void *)CWM_RIGHT); + conf_bindkey(c, kbfunc_ptrmove, + XK_Left, ControlMask, 0, (void *)CWM_LEFT); + conf_bindkey(c, kbfunc_ptrmove, + XK_Up, ControlMask|ShiftMask, 0, + (void *)(CWM_UP|CWM_BIGMOVE)); + conf_bindkey(c, kbfunc_ptrmove, + XK_Left, ControlMask|ShiftMask, 0, + (void *)(CWM_LEFT|CWM_BIGMOVE)); + conf_bindkey(c, kbfunc_ptrmove, + XK_Right, ControlMask|ShiftMask, 0, + (void *)(CWM_RIGHT|CWM_BIGMOVE)); + conf_bindkey(c, kbfunc_ptrmove, + XK_Down, ControlMask|ShiftMask, 0, + (void *)(CWM_DOWN|CWM_BIGMOVE)); } snprintf(dir_settings, sizeof(dir_settings), @@ -392,6 +412,14 @@ struct { { "rcycle", kbfunc_client_rcycle, KBFLAG_NEEDCLIENT, 0 }, { "label", kbfunc_client_label, KBFLAG_NEEDCLIENT, 0 }, { "delete", kbfunc_client_delete, KBFLAG_NEEDCLIENT, 0 }, + { "ptru", kbfunc_ptrmove, 0, (void *)CWM_UP }, + { "ptrd", kbfunc_ptrmove, 0, (void *)CWM_DOWN }, + { "ptrl", kbfunc_ptrmove, 0, (void *)CWM_LEFT }, + { "ptrr", kbfunc_ptrmove, 0, (void *)CWM_RIGHT }, + { "bigptru", kbfunc_ptrmove, 0, (void *)(CWM_UP|CWM_BIGMOVE) }, + { "bigptrd", kbfunc_ptrmove, 0, (void *)(CWM_DOWN|CWM_BIGMOVE) }, + { "bigptrl", kbfunc_ptrmove, 0, (void *)(CWM_LEFT|CWM_BIGMOVE) }, + { "bigptrr", kbfunc_ptrmove, 0, (void *)(CWM_RIGHT|CWM_BIGMOVE) }, { "groupselect", kbfunc_client_groupselect, 0, 0 }, { "group1", kbfunc_client_group, 0, (void *)1 }, { "group2", kbfunc_client_group, 0, (void *)2 }, |