summaryrefslogtreecommitdiff
path: root/app/cwm/conf.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2007-11-07 21:58:04 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2007-11-07 21:58:04 +0000
commit379780af0474330adc114ff8f8a187ba946d4bb7 (patch)
tree011d96f1586cc43ee45b7c5df1a5e291720f40a0 /app/cwm/conf.c
parent4d85406f294e338756cc783a988255193db34c89 (diff)
Add support to cwm for resizing the windows using Control-Meta-[hjkl].
Please note that this remaps Control-Meta-L (label) to Control-Meta-N (name). ok jasper@, todd@.
Diffstat (limited to 'app/cwm/conf.c')
-rw-r--r--app/cwm/conf.c30
1 files changed, 27 insertions, 3 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c
index 05bc9d2f1..044d204f6 100644
--- a/app/cwm/conf.c
+++ b/app/cwm/conf.c
@@ -4,7 +4,7 @@
* Copyright (c) 2004 Marius Aamodt Eriksen <marius@monkey.org>
* All rights reserved.
*
- * $Id: conf.c,v 1.8 2007/06/27 13:28:22 todd Exp $
+ * $Id: conf.c,v 1.9 2007/11/07 21:58:03 oga Exp $
*/
#include "headers.h"
@@ -204,7 +204,7 @@ conf_setup(struct conf *c)
XK_Tab, Mod1Mask, 0, 0);
conf_bindkey(c, kbfunc_client_rcycle,
XK_Tab, Mod1Mask|ShiftMask, 0, 0);
- conf_bindkey(c, kbfunc_client_label, XK_l,
+ conf_bindkey(c, kbfunc_client_label, XK_n,
ControlMask|Mod1Mask, KBFLAG_NEEDCLIENT, 0);
conf_bindkey(c, kbfunc_client_delete, XK_x,
ControlMask|Mod1Mask, KBFLAG_NEEDCLIENT, 0);
@@ -258,7 +258,31 @@ conf_setup(struct conf *c)
conf_bindkey(c, kbfunc_client_move,
XK_H, Mod1Mask, KBFLAG_NEEDCLIENT,
(void *)(CWM_LEFT|CWM_BIGMOVE));
- }
+ conf_bindkey(c, kbfunc_client_resize,
+ XK_k, ControlMask|Mod1Mask,
+ KBFLAG_NEEDCLIENT, (void *)CWM_UP);
+ conf_bindkey(c, kbfunc_client_resize,
+ XK_j, ControlMask|Mod1Mask,
+ KBFLAG_NEEDCLIENT, (void *)CWM_DOWN);
+ conf_bindkey(c, kbfunc_client_resize,
+ XK_l, ControlMask|Mod1Mask,
+ KBFLAG_NEEDCLIENT, (void *)CWM_RIGHT);
+ conf_bindkey(c, kbfunc_client_resize,
+ XK_h, ControlMask|Mod1Mask,
+ KBFLAG_NEEDCLIENT, (void *)CWM_LEFT);
+ conf_bindkey(c, kbfunc_client_resize,
+ XK_K, ControlMask|Mod1Mask, KBFLAG_NEEDCLIENT,
+ (void *)(CWM_UP|CWM_BIGMOVE));
+ conf_bindkey(c, kbfunc_client_resize,
+ XK_J, ControlMask|Mod1Mask, KBFLAG_NEEDCLIENT,
+ (void *)(CWM_DOWN|CWM_BIGMOVE));
+ conf_bindkey(c, kbfunc_client_resize,
+ XK_L, ControlMask|Mod1Mask, KBFLAG_NEEDCLIENT,
+ (void *)(CWM_RIGHT|CWM_BIGMOVE));
+ conf_bindkey(c, kbfunc_client_resize,
+ XK_H, ControlMask|Mod1Mask, KBFLAG_NEEDCLIENT,
+ (void *)(CWM_LEFT|CWM_BIGMOVE));
+ }
snprintf(dir_settings, sizeof(dir_settings),
"%s/.calmwm/.settings", home);