From 87387d9bcaf92813d3dd4ed8e389aa98725f3b19 Mon Sep 17 00:00:00 2001 From: todd Date: Wed, 27 Jun 2007 13:28:22 +0000 Subject: implement keyboard initiated movement of windows enhanced version of diff originally from niallo@ man bits from niallo@ ok niallo@ japser@ --- conf.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index 4b96323..05bc9d2 100644 --- a/conf.c +++ b/conf.c @@ -4,7 +4,7 @@ * Copyright (c) 2004 Marius Aamodt Eriksen * All rights reserved. * - * $Id: conf.c,v 1.7 2007/06/26 19:34:26 niallo Exp $ + * $Id: conf.c,v 1.8 2007/06/27 13:28:22 todd Exp $ */ #include "headers.h" @@ -20,6 +20,7 @@ #define CONF_MAX_WINTITLE 256 #define CONF_IGNORECASE 0x01 + /* * Match a window. */ @@ -237,6 +238,26 @@ conf_setup(struct conf *c) XK_f, ControlMask|Mod1Mask, KBFLAG_NEEDCLIENT, 0); conf_bindkey(c, kbfunc_client_vmaximize, XK_equal, ControlMask|Mod1Mask, KBFLAG_NEEDCLIENT, 0); + conf_bindkey(c, kbfunc_client_move, + XK_k, Mod1Mask, KBFLAG_NEEDCLIENT, (void *)CWM_UP); + conf_bindkey(c, kbfunc_client_move, + XK_j, Mod1Mask, KBFLAG_NEEDCLIENT, (void *)CWM_DOWN); + conf_bindkey(c, kbfunc_client_move, + XK_l, Mod1Mask, KBFLAG_NEEDCLIENT, (void *)CWM_RIGHT); + conf_bindkey(c, kbfunc_client_move, + XK_h, Mod1Mask, KBFLAG_NEEDCLIENT, (void *)CWM_LEFT); + conf_bindkey(c, kbfunc_client_move, + XK_K, Mod1Mask, KBFLAG_NEEDCLIENT, + (void *)(CWM_UP|CWM_BIGMOVE)); + conf_bindkey(c, kbfunc_client_move, + XK_J, Mod1Mask, KBFLAG_NEEDCLIENT, + (void *)(CWM_DOWN|CWM_BIGMOVE)); + conf_bindkey(c, kbfunc_client_move, + XK_L, Mod1Mask, KBFLAG_NEEDCLIENT, + (void *)(CWM_RIGHT|CWM_BIGMOVE)); + conf_bindkey(c, kbfunc_client_move, + XK_H, Mod1Mask, KBFLAG_NEEDCLIENT, + (void *)(CWM_LEFT|CWM_BIGMOVE)); } snprintf(dir_settings, sizeof(dir_settings), -- cgit v1.2.3-2-gb3c3