diff options
author | sthen <sthen> | 2009-05-17 17:04:59 +0000 |
---|---|---|
committer | sthen <sthen> | 2009-05-17 17:04:59 +0000 |
commit | eb7803269e63acabfacbfd95c32e8ca44963f8d6 (patch) | |
tree | 55fadfbf23e09dff507c0b7d3b9ea9011856c3a4 /kbfunc.c | |
parent | 6df7cba24ed6c628a3640e8ce4d249d1ad91451b (diff) | |
download | cwm-eb7803269e63acabfacbfd95c32e8ca44963f8d6.tar.gz cwm-eb7803269e63acabfacbfd95c32e8ca44963f8d6.tar.xz cwm-eb7803269e63acabfacbfd95c32e8ca44963f8d6.zip |
add a "movetogroup" function, which hides the current window from
display and moves it to another group. useful with the recently added "grouponly" function, giving the ability to use groups as simple virtual desktops (similar to e.g. xmonad, dwm and scrotwm). this doesn't have default keyboard bindings; cwmrc(5) now shows how you could use these functions (use M-1...9 for grouponly1...9 and MS-1...9 for movetogroup1...9 to emulate the default dwm bindings). ok oga@
Diffstat (limited to 'kbfunc.c')
-rw-r--r-- | kbfunc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kbfunc.c b/kbfunc.c index e05a3b5..d7814ab 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -467,6 +467,12 @@ kbfunc_client_grouptoggle(struct client_ctx *cc, union arg *arg) } void +kbfunc_client_movetogroup(struct client_ctx *cc, union arg *arg) +{ + group_movetogroup(cc, KBTOGROUP(arg->i)); +} + +void kbfunc_client_maximize(struct client_ctx *cc, union arg *arg) { client_maximize(cc); |